Skip to content

SP4: Axis.ManualTicks(Tick[] ticks) #2957

@FannyAtGitHub

Description

@FannyAtGitHub

Feature Suggestion

Feature description:
The concept of major and minor ticks is great and the concept of manual tick positions is very much appreciated as well. So why not putting them together?

I mainly work with logarithmic plots. I need to use manual tick positions especially when zooming in - as there are no automatic ticks provided any more when the data range is 'too small'. (I skip adding an example plot with no ticks on the axis.)
Manual major ticks and labels work very well for these small range logarithmic plots.

If I understand correctly, in order to add minor ticks the only option right now would be to add more major manual ticks but with empty labels. The result is not great as the major and 'minor' ticks have an identical look and the grid lines are of the same color. So the lines are not easily distinguishable.
image
(Note: Just to clarify as this has been a subject to discussions before. This is a logarithmic plot. One might expect the minor grid lines need to be distributed in 'a more logarithmic way' but this is not the case. The space between minor ticks just gradually shrinks over the range of one full magnitude. Here, a range a lot smaller than a magnitude is plotted.)

Right now there is only major ticks (with labels) in my plots and minor ticks are just missing. With this the axis is a little empty. Particularly in logarithmic plots minor grid lines would be a wonderful orientation helper.

This is an example where I think minor ticks would help the viewer a whole lot when viewing the data:
image

So please add this feature!

Code example:
I suggest a similar way as adding manual major tick positions.
Example:

_plot.YAxis.ManualTickPositions(majorTicks, majorTickLabels);
_plot.YAxis.ManualMinorTickPositions(minorTicks);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedScott won't do this soon, but PRs from the community are welcome!⚠️ HIGH PRIORITY

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions