Auto axis scales without labels

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

jezza323 wrote at 2012-08-02 16:52:

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!


objo wrote at 2012-08-09 00:16:

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.


jezza323 wrote at 2012-08-09 00:18:

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


objo wrote at 2012-08-09 00:24:

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

CodePlex