This is the discussion forum for OxyPlot.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!

Xamarin ios timespan axis freezes on iphone 4

Oystein Bjorke vor 10 Jahren aktualisiert von Simon Taylor vor 9 Jahren 1
This discussion was imported from CodePlex

lanks wrote at 2014-03-20 05:43:

I have created a timespan axis graph that is the same as the example in the oxyplot monotouch examples app.

When the app goes to load the graph is freezes when running on an iphone 4. I have tested this with an iphone 5 and it runs perfectly. There is no error reported in the application output in xamarin studio. The app just completely freezes.

This also happens with the oxyplot monotouch examples app when selecting the timespan axis graph.

Any ideas why this is happening?

Liam

benhysell wrote at 2014-03-20 15:48:

Liam,

Can you run instruments against your iPhone 4 and see where your app is spending all of its time?

-ben

lanks wrote at 2014-03-21 02:09:

Hi Ben

Thanks for your response.

I ran instruments with the time profiler but I am not too sure what I am looking for? Here is a link to the data from instruments https://www.dropbox.com/s/gahj6l53bl4dbnx/SportsEdgeInstruments.trace.zip

Are you able to confirm that you can run the timespan axis with an iPhone < 5?

Cheers
Liam

benhysell wrote at 2014-03-21 12:58:

Liam,

I cannot confirm running on less than 5s and iPad 3...but my app does have an x-axis that is a date axis...I'm about to release a new version of code with OxyPlot in it. Thus if there is a major issue with the 4 I'm concerned.

Basically with Instruments I'm looking for where all the time is being spent. From your snapshot start at the top and keep hitting down arrows until the function that is using up all of the time is exposed.

Although I can't see exactly where the code is falling down, I can at least point you in the correct direction. From your Instruments after I clicked down through all of the calls:

Image

TimeSpan axis correct? OxyPlot/Axes/TimeSpanAxis.cs line 173
protected override double CalculateActualInterval(double availableSize, double maxIntervalSize)
From Instruments it looks like the line 188 is just spinning
double nextInterval = goodIntervals.FirstOrDefault(i => i > interval);
I'd start poking around here with the debugger and see why that FirstOrDefault is never ending, or why it is being called so many times
0
Wird überprüft

Legend with checkboxes

Nicolasr75 vor 9 Jahren aktualisiert von Oystein Bjorke vor 9 Jahren 1

Hi,

I found the post about legends with checkboxes from last year. Is there already an example for doing this or can anyone give some hints about how to achieve this?

Thanks,

Nick

Operator '==' cannot be applied to operands of type 'OxyPlot.OxyColor' and 'null' (MonoTouchDemo)

Oystein Bjorke vor 10 Jahren 0
This discussion was imported from CodePlex

Devin19 wrote at 2013-10-31 17:19:

The MonoTouch Demo won't build because of the above error. It seems that OxyColor isn't NULLable, but there are statements where it's compared to NULL, which crashes it. When I change this to oxycolor.Equals(null) it build, but crashes (obviously) when I'm trying to draw a graph.

I would expect since its not NULLable, there would be a value like 'undefined' which can be chosen instead, but this doesn't seem to be the case.

How can this be solved?

objo wrote at 2013-10-31 18:21:

OxyColor was recently changed to a value type. Try to use OxyColors.Undefined where no color should be applied and OxyColors.Automatic where OxyPlot should suggest or a default color should be used. Let me know where to correct the MonoTouch code, I cannot compile this myself.

Devin19 wrote at 2013-11-01 11:17:

Hi I've fixed it, I tried to upload the changes thru the fork feature here on codeplex, but I couldn't figure out how to update it through SVN.
Anyways, replacing OxyPlot.MonoTouch\MonoTouchRenderContext.cs by this should fix it.

I replaced the
foo != null
by
!foo.Equals(OxyColors.Undefined)
etc.

I've ran the demo on an iOS simulator, and didn't run into any bugs,
although the resolution seems a kinda low compared to the MonoForAndroid version.

objo wrote at 2013-11-01 19:59:

Thanks, I submited a fix with some modifications (using the OxyColor.IsVisible method), let me know if I broke something...

Devin19 wrote at 2013-11-02 09:34:

It's nearly correct, you just forgot to add the
using System;
I forgot to mention that I changed it, it's needed for the Math.PI at line 183.

For as far as I've tested it nothing else seems to be wrong, I'll let you know if I find something.

Edit:
  • The Microsoft.CSharp Reference in ExampleLibraryMT.csproj should be removed, it gives an error, but the project runs fine without the reference.
  • There is no 'splashscreen' for iPhone 5 resolution included.
0
Wird überprüft

Can OxyPlot Do Multiple Chartsper Page? Can it Export to PDF?

crabbylou vor 9 Jahren aktualisiert von Oystein Bjorke vor 9 Jahren 1

I am looking for an open source plotting library to plot system OS statistics. Getting the stats is the easy part. I need a .NET or Java plotting library to generate multiple graphs per page and export them to PDF. This would all be done in code. Can Oxyploy do this? Any help is appreciated or recommending any other packages.

Is it possible to plot against the Y-Axis with a Line Series?

Oystein Bjorke vor 10 Jahren 0
This discussion was imported from CodePlex

willmoore88 wrote at 2013-04-08 17:46:

Is it possible to plot against the Y-Axis with a Line Series?

So you might get a graph such as this one:
http://cmore.soest.hawaii.edu/cruises/operex/images/Backscatter-Data_full.gif
0
Wird überprüft

Eto based backend

Robert Conde vor 10 Jahren aktualisiert von Oystein Bjorke vor 10 Jahren 1
Currently there is an Eto.OxyPlot on nuget:

https://www.nuget.org/packages/Eto.OxyPlot/

However, only a WPF version is available. It seems the approach here is to just host the OxyPlot.WPF implementation in Eto.Forms.

I've taken a different approach and created an OxyPlot backend which uses Eto's abstracted rendering interfaces. This way, it becomes available on any platform that is available for Eto.

Are the maintainers interested in merging this back into the OxyPlot repository?

Thanks,
Rob Conde

Zoom in by dragging a rectangle by mouse?

Oystein Bjorke vor 10 Jahren aktualisiert von Joey vor 8 Jahren 1
This discussion was imported from CodePlex

Christoph1972 wrote at 2014-02-13 06:07:

Hello,

I'm new at CodePlex and interested in OxyPlot.

Is there a way to zoom in by dragging a rectangle by mouse? By Zedgraph is it a basic setting.

Google shows me only this: http://searchcode.com/codesearch/view/28445967

But I have no idea to use it. Is it what I'm looking for?

Sorry for my poor English, I'm from Germany.

Kind Reguards
Christoph

everytimer wrote at 2014-02-13 20:07:

By default you can use the wheel click to draw a rectangle and zoom in it. You can also do that on the axes, selecting the desired range that way.
Double wheel click autoadjusts the view. Good luck!

P.S.: WPF
0
Wird überprüft

Add a LegendMinWidth property

Thorsten Claff vor 9 Jahren aktualisiert von Oystein Bjorke vor 9 Jahren 1

Similar to the LegendMaxWidth property, it would be good to have a LegendMinWidth property. This is useful, when having several stacked plots with outside legends. Without a MinWidth the LegendWidth tend to vary.

0

WPF PlotView Cutom Tooltip

VINO vor 9 Jahren 0
Is there any option for adding ToolTip in mouse over on the
line series?

Horizontal BoxPlotSeries or FinancialSeries

Oystein Bjorke vor 10 Jahren 0
This discussion was imported from CodePlex

bib34690 wrote at 2012-10-17 17:03:

I'm interested in BoxPlotSerie or CustomSeries or Financial Series, but all are vertical bars.

Is it possible to have horizontal timeLine.

Thanks for your great job and for sharing it.


objo wrote at 2012-10-17 23:31:

Right, these series are only vertical. I added the following new features

http://oxyplot.codeplex.com/workitem/10012
http://oxyplot.codeplex.com/workitem/10013