You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm plotting a benchmark frequency graph, where the Y axis is (normally) a log scale in the 100M to 1G range.
I'm doing this by using the following options:
This results when there is at least 1 "major" tick:
If there is only "minor" ticks, this is the results: (What I'd consider the correct behaviour.)
As you can see the first example omits the 'exponent format', but it does put in the suffix. I think this results in a confusing graph.
I think there are a number of possible fixes for this:
Put the SI prefix in the minor tick, along with actual number (not just the 1-9) (My personal preference.)
Allow an option to only specify suffixes on major ticks. Maybe via showticksuffix. This would still make the graph less readable IMO, but it would at least make it clear the graph doesn't jump from 1GHz to 9Hz.
If this is something that would get accepted as a PR, I'm willing to try and implement it.
The text was updated successfully, but these errors were encountered:
Hi @dries007 - thanks for writing in and sorry for the belated reply.
A lot of users have been noticing less-than-ideal behavior in our minor ticks on log axes, for example: #3679, As we don't currently support minor tick settings (cc #903), it's still not obvious to me how we can make everyone happy and stay consistent with our other tick settings at the moment.
I think both your "possible fixes" items could be solved issue up-coming (tracked in #903) minor ticks settings:
For 1., I'm thinking minortick.mode with values 'step' (like log axes currently) and 'actual' (which would correspond to what you're suggesting)
For 2., adding something like showminorticksuffix (similar to showticksuffix) should be sufficient.
But I have to say, you're making a good point that on your https://jsfiddle.net/sk5v0gx6/, we probably shouldn't be showing the Hz ticksuffix on those minor ticks.
I found #3250 which appears equivalent to your item 1. and called it a bug (when ticksuffix is set, assuming ticksuffix corresponds to a unit, I guess 🤔 ).
I'm plotting a benchmark frequency graph, where the Y axis is (normally) a log scale in the 100M to 1G range.
I'm doing this by using the following options:
Example: https://jsfiddle.net/sk5v0gx6/
This results when there is at least 1 "major" tick:

If there is only "minor" ticks, this is the results: (What I'd consider the correct behaviour.)

As you can see the first example omits the 'exponent format', but it does put in the suffix. I think this results in a confusing graph.
I think there are a number of possible fixes for this:
showticksuffix
. This would still make the graph less readable IMO, but it would at least make it clear the graph doesn't jump from 1GHz to 9Hz.If this is something that would get accepted as a PR, I'm willing to try and implement it.
The text was updated successfully, but these errors were encountered: