Invert Y Axis

Feb 16, 2010 at 7:05 PM
Edited Feb 16, 2010 at 7:06 PM

Hello,

Is there currently a way to invert the Y axis, so that the origin(0, 0) matches the WPF screen coordinate system (Top left)?

Thanks

Editor
Feb 17, 2010 at 12:20 PM

Hello,

To invert Y axis, use the following code:

 

plotter.DataTransform = new LambdaDataTransform(p => new Point(p.X, -p.Y), p => new Point(p.X, -p.Y));

and then set up visible area as you want.

Best regards,

Mikhail.