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

plot_topoplotseries colorbars still broken #327

Open
behinger opened this issue Feb 20, 2025 · 3 comments
Open

plot_topoplotseries colorbars still broken #327

behinger opened this issue Feb 20, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@behinger
Copy link
Member

cb_limits = (minimum(data.val.estimate), maximum(data.val.estimate)) # set limits for colorbar

this is a bad way to define default colorranges, why not use extract_colorrange a function that is already defined?


besides that, I cannot get non-symmetric colorbars anymore. colorrange seems to be ignored?

Image

tp_pvalues = plot_topoplotseries!(
    f_pvalues,
    p_values_df;
    bin_width,
    positions = pos2d,
    mapping = (; y = :estimate),
    visual = (; enlarge = 0.6, label_scatter = false, colorrange = (0, 0.1)),
    colorbar = (; label = "p-value"),
)

I couldnt find in the code why/where this breaks yet

@behinger
Copy link
Member Author

ok sorry I havent actually used the newest UnfoldMakie version. Now I do, it is still broken, but differently :-P

So colorrange is not respected when calculating limits of colorbar, this is a bug I can see directly from the code. I can circumvent this, by not specifying colorrange, but limits directly - but then the labels are wrong...

@vladdez
Copy link
Collaborator

vladdez commented Feb 24, 2025

and what it the current issue? @behinger

@vladdez vladdez added the bug Something isn't working label Feb 24, 2025
@behinger
Copy link
Member Author

So colorrange is not respected when calculating limits of colorbar, this is a bug I can see directly from the code. I can circumvent this, by not specifying colorrange, but limits directly - but then the labels are wrong...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants