Skip to content

reposition [x-y]anchor when [x-y]sizemode='pixel' #1494

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

Merged
merged 5 commits into from
Apr 3, 2019
Merged

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Mar 18, 2019

See #1493 for an example

Background

layout.shapes have xsizemode/ysizemode attributes that allow you to specify a fixed height/width for shapes by setting, say ysizemode='pixel'. In this case, the y0/y1 are measured in pixels and are positioned relative to yanchor. Therefore, when ysizemode='pixel' and yref = 'paper', subplot() needs to reposition yanchor instead of y0/y1

@cpsievert cpsievert requested a review from schloerke April 2, 2019 21:33
Copy link
Contributor

@schloerke schloerke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See your comment

@cpsievert cpsievert merged commit 909db3b into master Apr 3, 2019
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

Successfully merging this pull request may close these issues.

2 participants