Reputation: 749
I draw data using oxyplot. The axes are autoscaling, therefore the properties, Minimum and Maximum are NaN for each axis. But I want to see a certain area of this plot. I can not use the zoom because it only allows me to set a zoomlevel, which would differ for different dataset, since autoscale is on.
Straight forward, I would change the ActualMinimum and ActualMaximum property, which actually would do exactly what I need. These properties are not settable.
How to do?
Upvotes: 1
Views: 2622
Reputation: 117
Found a fix! Instead of using Maximum and Minimum, I should have used Axis.Zoom:
plotModel.Axes[1].Zoom(100, 500);
Upvotes: 3