How to not show numbers on a LinearAxis?

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

RickNZ wrote at 2012-08-29 03:32:

Is it possible to disable the numbers on a LinearAxis without also disabling the axis label?

If not, can the size of the numbers be changed independently of the size of the label?

objo wrote at 2012-08-29 06:50:

Currently it is not possible to disable the numbers. (maybe you can find a workaround by setting MajorStep to a large number? or create a derived LinearAxis that only renders the axis title)

The same size (+font and color) is used for both the axis title and the tick labels. This is based on the 'plot style' recommendations in Tufte's and Few's books (see links on the home page). It is of course possible to make everything customizable, but I think that will be on the cost of simplicity.

RickNZ wrote at 2012-08-29 09:29:

Using a large MajorStep causes the high-end value of the axis not to be displayed, but the low-end is still there.

In addition to using this capability on a single axis, this might also be useful as a way to provide a second level of axis labels when you have multiple panes / axes sharing a single major axis (so there's not a separate scale/axis that would be applicable for PositionTiers).