Using AngleAxis in WinForms application

Sep 19, 2012 at 10:18 AM
Edited Sep 19, 2012 at 10:19 AM

Good day!

 

I'm trying to use AngleAxis in my application, but encountering a problem.

var linearAxis3 = new AngleAxis();
linearAxis3.Position = AxisPosition.Right;
plotModel1.Axes.Add(linearAxis3);

When i'm starting my program, it writes "OxyPlot paint exception: Magnitude axis not defined". What am i doing wrong?

 

Thank you in advance!

Sep 19, 2012 at 10:33 AM

Angle/Magnitude axes are used for polar plots. See the polar plot example!

Will improve the error message!

Sep 19, 2012 at 11:13 AM
Edited Sep 19, 2012 at 11:19 AM

Thanks a lot! Unfortunately it is not what i wanted it to be. I need an ordinary linear axis, but labeled in degrees. Can LinearAxis be configured this way or should i use custom labels (if there are something like it)?

Sep 24, 2012 at 9:22 AM

yes, you should use a LinearAxis. Set the StringFormat property if you want custom formatting of the labels.