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

[Feature request] Align legend with the start and end of the axis #17

Open
sbcalaff opened this issue Apr 4, 2022 · 1 comment
Open

Comments

@sbcalaff
Copy link

sbcalaff commented Apr 4, 2022

I wonder if it would be possible to implement a feature that make it possible to align the legend with the start and end of the axis. For example, in the figure below the legend extends along the Y-axis, perfectly aligned with the start and end of the axis. This new feature can be extended to the sharing of a single legend by multiple plots.

image
(Image taken from https://uk.mathworks.com/help/examples/graphics/win64/CreatingColorbarsFullEmbedExample_01.png)

@zhuchcn
Copy link

zhuchcn commented Aug 18, 2024

Haven't tried it myself, but I assume you can make the "legend" simply as a heatmap using geom_tile and then it can be aligned to the main figure using insert_left. Hope this helps!

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

2 participants