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

support xflip and yflip for heatmaps #400

Closed
fredcallaway opened this issue Nov 28, 2024 · 5 comments
Closed

support xflip and yflip for heatmaps #400

fredcallaway opened this issue Nov 28, 2024 · 5 comments
Labels

Comments

@fredcallaway
Copy link

In particular, yflip would be really nice because this is the orientation in which matrices are printed.

@t-bltg
Copy link
Member

t-bltg commented Nov 28, 2024

Are you looking for the array keyword ?

help?> heatmap
[...]
    •  array : use array display convention (origin at the North-West
       corner of the plot, hence flipping y versus regular plots).

@fredcallaway
Copy link
Author

I guess I was—although I still adding yflip as a synonym would make sense for consistency with the rest of the package (and Plots.jl)

@t-bltg
Copy link
Member

t-bltg commented Nov 30, 2024

Yeah, I don't remember why array was added, especially since xflip and yflip seem to be supported natively by heatmap and the underlying canvas.

@t-bltg
Copy link
Member

t-bltg commented Nov 30, 2024

Can I close this issue since yflip is working as expected here, e.g. heatmap(reshape(1:6^2, 6, 6), yflip=true) ?

@fredcallaway
Copy link
Author

I'm so sorry—I have no idea how I managed to convince myself that yflip wasn't supported.

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