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

axis = (; xlabelvisible = false) doesn't work if mapping.col is used #557

Closed
vladdez opened this issue Sep 12, 2024 · 4 comments
Closed

Comments

@vladdez
Copy link

vladdez commented Sep 12, 2024

Bug description

axis = (; xlabelvisible = false) doesn't work if mapping.col is used

Steps to reproduce

using Unfold, UnfoldMakie, AlgebraOfGraphics
m = example_data("UnfoldLinearModel")
results = coeftable(m)


plot_erp(results; axis = (; xlabelvisible = false, xticklabelsvisible = false)) #works
plot_erp(
        results;
        mapping = (; col = :coefname),
        axis = (;
            xlabel = "test",
            titlevisible = false,
            xlabelvisible = false,
            ylabelvisible = false,
            yticklabelsvisible = false,
            xticklabelsvisible = false,
        ),
) #not working

Images

image

Version info

Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 128 × AMD EPYC 7452 32-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
Threads: 1 on 128 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =
JULIA_DEBUG = UnfoldMakie

AlgebraOfGraphics v0.8.7
CairoMakie v0.12.9

@jkrumbiegel
Copy link
Member

Hm that doesn't work because the label is not an axis xlabel but a separate Label that's drawn in a similar position (but can also sit between axes). I'm not sure it makes sense to pretend like xlabelvisible should affect that.

@behinger
Copy link

behinger commented Sep 12, 2024

So in AoG, if you have faceting, how would you change the label of individual axes? Aka, how to access that label/property?

@jkrumbiegel
Copy link
Member

What do you mean by "individual axes"? Usually in facetting, if the same label appears under every axis, they're merged. The label is the one passed in the mapping usually, like mapping(:x => "x label")

@jkrumbiegel
Copy link
Member

jkrumbiegel commented Mar 31, 2025

Going to close this one as the canonical ways in Makie to hide the x label are either :x => "" or scales(X = (; label ="")) and the axis properties should only be used for the less "semantic" things like tick label rotation etc. Otherwise you're going to collide with implementation details like how the shared x label is made with a Label.

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

No branches or pull requests

3 participants