Xamarin - Blurry Graphs

Oystein Bjorke 10 років тому 0
This discussion was imported from CodePlex

benhysell wrote at 2014-02-24 19:06:

First, amazing library, I was able to swap out core-plot and had OxyPlot up and running in my iOS application in a couple of hours.

I am having a bit of an issue with the generated graphs, and maybe I'm missing something simple, but all of the graphs created on the simulator and on the devices appear blurry. See the attached screen shot:

Image

Thoughts? Thanks!

objo wrote at 2014-02-24 22:00:

I think the problem was that the example used an UIScrollView to show the plot. I am currently refactoring the iOS port. A much better Plot view will be available soon!

benhysell wrote at 2014-02-25 01:09:

Excited to see it!

Let me know if you need help with device testing.

objo wrote at 2014-02-25 08:12:

Yes, help on device testing (particularly older iOS devices) would be great.
I am currently trying to fix the image rendering (having some issues on partial image drawing) and touch events (depends on https://oxyplot.codeplex.com/workitem/9625) on the iOS control.

objo wrote at 2014-02-27 22:37:

I have pushed the current version of the iOS control to default. The new version should not be blurry, and should also render aliased (e.g. axis/grid lines) much nicer. Can you check this on your devices?
There are still some issues remaining on image drawing and text rendering (should use Core Text). Also the touch events are not handled (waiting for #9625 to be pulled in).

benhysell wrote at 2014-02-28 01:51:

I just pulled down the latest default, and my graphs now look great using the new iOS control PlotView. The example app looks great, as well as my own app where I swapped out core-plot for Oxyplot.

As for hardware I tested with what I had on hand, a 5s and iPad3.

I ran Instruments against the iPad3 in debug mode, and was happy to see memory and CPU usage were both super low. As a comparison, doing the same exact work using core-plot on the iPad would either result in a soft reset because I consumed 300 MB of memory, or 100% CPU usage for a prolonged period of time while rendering three plots.

Did the Xamarin.Android project get the same treatment, or was this not a problem on the Android side?

objo wrote at 2014-02-28 07:18:

I have not tested Xamarin.Android yet, will do this when I am finished with iOS.