-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
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:
{
"yaxis": {
"exponentformat": "SI",
"ticksuffix": "Hz",
"type": "log",
},
}
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:
- 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.
Metadata
Metadata
Assignees
Labels
No labels