Auto axis scales without labels

Aug 2, 2012 at 3:52 PM

Im back with another question (still loving Oxyplot btw!)

 

I have a number of graphs in a dockable environment, which results in some of the graphs being quite small. When graphs get below a certain height, I find those which are using the automatic axis scaling on the Y axis scale such that there are no labels shown. I appears that the scaling gets below a limit which results in labels existing above and below the visible axis range.

Is there a way I can adjust this such that the scaling is somewhat dependent on the height of the control? So long as I always have some label visible I would be happy.

Cheers!

Coordinator
Aug 8, 2012 at 11:16 PM

See the "IntervalLength" property of the axis (it is always difficult to find good names of these properties...) - reduce the number to get higher density of labels.

There should never be less than two labels on an axis - I will add it as an bug in the issue tracker.

Aug 8, 2012 at 11:18 PM

Thanks again objo

Ill look into IntervalLength tomorrow, and if I get a chance I'll see if I can investigate the bug for you

Coordinator
Aug 8, 2012 at 11:24 PM

good, see http://oxyplot.codeplex.com/workitem/9975