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

Add axis domain as an option for position legends #4601

Open
juan11iguel opened this issue May 4, 2024 · 0 comments
Open

Add axis domain as an option for position legends #4601

juan11iguel opened this issue May 4, 2024 · 0 comments

Comments

@juan11iguel
Copy link

This is related to this question in the community forum. Opened an issue since I think this is a better place for a feature request.

In short, enabling arbitrary axis as a reference system for legends would greatly simplify its positioning along different axis in order to achieve a legend per plot in a figure with subplots. Currently is only supported for shapes, annotations, and images:

Furthermore, shapes, annotations, and images can be placed relative to an axis's domain so that, for instance, an x value of 0.5 would place the object halfway along the x-axis, regardless of the domain as specified in the layout.xaxis.domain attribute. This behavior can be specified by adding ' domain' to the axis reference in the axis referencing attribute of the object. For example, setting yref = 'y2 domain' for a shape will refer to the length and position of the axis named y2.

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

No branches or pull requests

2 participants