-
-
Notifications
You must be signed in to change notification settings - Fork 372
GR: rework automatic major/minor ticks for log scales #3577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@BeastyBlacksmith, pinging you on this one for review / merge: if we could move forward that'll be great ;) |
|
Fixed the only minor issue with OldNewNote: the CI will be significative only once JuliaPlots/PlotUtils.jl#115 is merged. |
55f3c0d to
fd590bb
Compare
|
Ok, so after merging JuliaPlots/PlotUtils.jl#115 and triggering a new release of @BeastyBlacksmith or @daschw if I could have your approval, we can merge JuliaPlots/PlotReferenceImages.jl#97 and this PR. |
|
how did ref5 look like with minmal number of ticks = 4? |
|
I suppose this is because it tries to find integer exponents. Can we have some kind of look for integer exponents -> if not enough ticks present look for mulitples of 1/2 -> if not enough ticks found look for multiples of 1/4 etc. ? |
What's wrong with requiring less major ticks ? It is justified by the choice of log scaling. Non-integer powers do not bring information to the plot or the user: |
|
I think the plot looks a bit lost with only two ticks. But surely that is subjective, probably would look okay with minorticks. Overall I am okay with the changes |
It is subjective yes, see also the examples in https://fr.mathworks.com/help/matlab/ref/loglog.html. Don't count on minor-ticks there, we need at least Line 340 in 6f44004
|
Codecov Report
@@ Coverage Diff @@
## master #3577 +/- ##
==========================================
- Coverage 64.83% 63.63% -1.21%
==========================================
Files 27 28 +1
Lines 6641 6855 +214
==========================================
+ Hits 4306 4362 +56
- Misses 2335 2493 +158
Continue to review full report at Codecov.
|
e0ad338 to
ba17932
Compare




Superseding #3547, required patch: JuliaPlots/PlotUtils.jl#115.
Test cases:
Output:


Fix #3318
Fix #696
Fix #458