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

pseudolog10 doesn't give nice ticks #1319

Open
ericphanson opened this issue Sep 17, 2021 · 2 comments
Open

pseudolog10 doesn't give nice ticks #1319

ericphanson opened this issue Sep 17, 2021 · 2 comments
Labels
Axis related to `Axis()` objects enhancement Feature requests and enhancements (log) scale Makie Backend independent issues (Makie core) transformation related to `Transformation` objects

Comments

@ericphanson
Copy link
Contributor

julia> using CairoMakie

julia> save("log10.png", scatter(exp.(1:10), 1:10; axis=(; xscale=log10)))
CairoScreen{Cairo.CairoSurfaceBase{UInt32}} with surface:
Cairo.CairoSurfaceBase{UInt32}(Ptr{Nothing} @0x00007f9d6bc142f0, 800.0, 600.0)

log10

while

julia> save("pseudolog10.png", scatter(exp.(1:10), 1:10; axis=(; xscale=Makie.pseudolog10)))
CairoScreen{Cairo.CairoSurfaceBase{UInt32}} with surface:
Cairo.CairoSurfaceBase{UInt32}(Ptr{Nothing} @0x00007f9d6bc51d70, 800.0, 600.0)

gives
pseudolog10

@jkrumbiegel
Copy link
Member

True, I didn't have ideas yet for a good algorithm. If zero is in the plot, you'd get infinite ticks with the log algorithm. So there must be some heuristic when to show what.

@ericphanson
Copy link
Contributor Author

No worries, just wanted to track the issue somewhere. Having the pseudolog10 is already super useful :).

@ffreyer ffreyer added enhancement Feature requests and enhancements Makie Backend independent issues (Makie core) MakieLayout transformation related to `Transformation` objects Axis related to `Axis()` objects and removed MakieLayout labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Axis related to `Axis()` objects enhancement Feature requests and enhancements (log) scale Makie Backend independent issues (Makie core) transformation related to `Transformation` objects
Projects
None yet
Development

No branches or pull requests

4 participants