-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Fix img axes #4088
Fix img axes #4088
Conversation
7620da6
to
b5317f2
Compare
@sefffal, I assumed that the labels will suit you, the alternatives are (horizontal axis as example).
Labelling |
Thanks @t-bltg for looking at this! |
Thanks for your reply. What we could do right now is fix the current which is obviously wrong with |
@BeastyBlacksmith, whats is your opinion on this ? There is no point opening a PR in https://github.com/JuliaPlots/PlotReferenceImages.jl if this is not the fix which is going to get in. |
A second reason to prefer labeling cells starting at 1 is that it matches nicely with Julia indexing. For example, you can access the cell at position 1,1 just by accessing As an aside, how does this work for heatmaps? Can the tick positioning code from there be used for images as well? |
Looks like heatmap is centered at least for |
I think we should make this consistent with heatmap |
using Plots
img = randn(10, 15)
png(plot(Gray.(img), xticks=1:15, yticks=1:10), "foo") png(plot(Gray.(img)), "bar") @sefffal, @BeastyBlacksmith, ok now ? |
Beautiful! |
Codecov Report
@@ Coverage Diff @@
## master #4088 +/- ##
=======================================
Coverage 62.20% 62.20%
=======================================
Files 29 29
Lines 7315 7315
=======================================
Hits 4550 4550
Misses 2765 2765
Continue to review full report at Codecov.
|
Fix #4087.