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

Spurious minor ticks on y axis #3487

Closed
2 tasks done
maxfreu opened this issue Dec 19, 2023 · 0 comments · Fixed by #3505
Closed
2 tasks done

Spurious minor ticks on y axis #3487

maxfreu opened this issue Dec 19, 2023 · 0 comments · Fixed by #3505
Labels

Comments

@maxfreu
Copy link

maxfreu commented Dec 19, 2023

Hi! I found a spurious y minor tick in my plot, a haunting ghost that should not be there!

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

Problem:
image

Code:

using CairoMakie

mm2pt(x, dpi=72) = x * dpi / 25.4
let
    fig = Figure(size=mm2pt.((80,60)))
    ax = Axis(fig[1, 1], xlabel = "Δr [m]",
        ylabel = "Cumulative Density",
        xticks = 0:5:40,
        yticks = 0:0.2:1,
        xminorticksvisible = true,
        yminorticksvisible = true)
    Makie.lines!(ax, [0, 20.75, 20.75], [0.95, 0.95, 0], linestyle=:dash, color=:black)
    xlims!(ax, 0, 40)
    ylims!(ax, 0, 1)
    fig
    save("spurious_minortick.png", fig, px_per_unit = 2, pt_per_unit=1)
end

[ee78f7c6] Makie v0.20.2
[13f3f980] CairoMakie v0.11.3

julia> versioninfo()
Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 8 on 16 virtual cores
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant