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

Zero ticks are missing #3620

Closed
maxfreu opened this issue Feb 9, 2024 · 2 comments
Closed

Zero ticks are missing #3620

maxfreu opened this issue Feb 9, 2024 · 2 comments
Labels

Comments

@maxfreu
Copy link

maxfreu commented Feb 9, 2024

using CairoMakie
fig = Figure(size = mm2pt.((83, 50)))
ax = Axis(fig[1, 1])
r = rand(20,30)
colsize!(fig.layout, 1, Aspect(1, size(r)[1] / size(r)[2]))
heatmap!(ax, r; colorrange = (0, 1))
save("deleteme.pdf", fig)

deleteme

I would expect to see zero ticks in this image. They are also missing for a simple call to heatmap.
Makie 0.20.7, CairoMakie 0.11.8, julia 1.10

@maxfreu maxfreu added the bug label Feb 9, 2024
@jkrumbiegel
Copy link
Member

the heatmap cells start counting at 1 and are centered with a width of 1. So the limits start at 0.5, that's why you don't have a zero :)

@maxfreu
Copy link
Author

maxfreu commented Feb 11, 2024

Ahh yes, counting would have helped, thanks! Then the only thing is that the outermost pixels are a bit too small, because they are overlapped by the axes. But that's a minor issue and a different one...

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