-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Misplaced yticks when mirroring inside ticks and linking yaxes #2209
Comments
Here is another example of this, without linking axes this time. It's an example from the docs, I only added the using CairoMakie
using DelimitedFiles
volcano = readdlm(Makie.assetpath("volcano.csv"), ',', Float64)
f = Figure()
Axis(f[1, 1]; yticksmirrored=true)
co = contourf!(volcano, levels = 10)
Colorbar(f[1, 2], co)
f |
Yes good catch, there were some edits to observable updates with ticks a while ago, those must have broken whatever the mirroring uses. Or the mirroring itself was buggy from the start and just not visible in my specific tests. |
I have the same problem, except in addition to being misaligned, my mirrored inner-ticks also end up on the outside. This is without linking any axes. X = rand(100) .+ 100
f = Figure()
axisargs = (
xticksmirrored=true,
yticksmirrored=true,
xtickalign=1,
ytickalign=1,
)
scatter(f[1,1], X, axis=(;axisargs...,))
scatter(f[1,2], X .* 10, axis=(;axisargs...,),)
scatter(f[2,1], X, axis=(;axisargs...,))
scatter(f[2,2], X .* 10, axis=(;axisargs...,),) Weirdly enough, this only seems to affect the plot at GridPosition[1,1] if it is created first. If I switch the order of construction, Makie seems to fix itself. X = rand(100) .+ 100
f = Figure()
axisargs = (
xticksmirrored=true,
yticksmirrored=true,
xtickalign=1,
ytickalign=1,
)
scatter(f[1,2], X .* 10, axis=(;axisargs...,))
scatter(f[1,1], X, axis=(;axisargs...,),)
scatter(f[2,1], X, axis=(;axisargs...,))
scatter(f[2,2], X .* 10, axis=(;axisargs...,),) Btw, would it be possible to rename I am using |
Soooo, I stumbled over that issue today as I had a similar problem with mirroring ticks... until I found out I was using an old version of Makie ( |
was fixed in #3581 |
When using inside mirrored yticks, the right spines ticks seem not to be adjusted correctly upon changes to the yaxis.
When swapping the
![misplaced_ticks2](https://user-images.githubusercontent.com/54391668/183964978-32dce383-4188-4032-9d79-c63d7dd87b7e.png)
linkyaxes!
andcolgap!
commands, the ticks end up in a different position, but still not really correct:This is on
Makie v0.17.13
.The text was updated successfully, but these errors were encountered: