Skip to content
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

mirrored ticks are sometimes misplaced with right y-axis #3458

Closed
3 tasks done
IlianPihlajamaa opened this issue Dec 8, 2023 · 2 comments
Closed
3 tasks done

mirrored ticks are sometimes misplaced with right y-axis #3458

IlianPihlajamaa opened this issue Dec 8, 2023 · 2 comments
Labels

Comments

@IlianPihlajamaa
Copy link

IlianPihlajamaa commented Dec 8, 2023

  • are you running newest version (version from docs) ?
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
  • What platform + GPU are you on?

Right ticks are misplaced with the following code (doesn't happen with all random seeds):

using CairoMakie, Random

Random.seed!(34280)
fig = Figure()
ax1 = Axis(fig[1,1],
    yticksmirrored=true,
)

ax2 = Axis(fig[2,1],
    yticksmirrored=true,
    yaxisposition = :right,
)
lines!(ax1, rand(5), rand(5))
lines!(ax2, rand(5), rand(5))

display(fig)
save("test.png", fig)

test

Julia Version 1.9.2
Commit e4ee485e90 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 11 on 12 virtual cores
Environment:
  JULIA_IMAGE_THREADS = 1
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 11

(test) pkg> st
Status `C:\Users\[...]\test\Project.toml`
  [13f3f980] CairoMakie v0.11.3

@IlianPihlajamaa
Copy link
Author

Here is another MWE:

using CairoMakie
fig=Figure()

ax1 = Axis(fig[1,1], yticksmirrored=true, yticks=0:1:10)
ax3 = Axis(fig[1,2])

display(fig)

test

Changing the order of the axis creation fixes the issue here.

@jkrumbiegel
Copy link
Member

this was fixed in #3581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants