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

Updating subplot axes breaks plot #2494

Closed
ChristofferHS opened this issue Mar 23, 2018 · 1 comment
Closed

Updating subplot axes breaks plot #2494

ChristofferHS opened this issue Mar 23, 2018 · 1 comment

Comments

@ChristofferHS
Copy link

Updating the second x-axis or either y-axis in the CodePen example below leads to e.g. axes overlapping (updating the first x-axis appears to work fine).

(there is at least some superficial similarity to #2347)

CodePen

@etpinard
Copy link
Contributor

That's actually the desired behavior here.

When calling relayout(gd, {yaxis: {title: 'new title'}} you're effectively clearing the all the other set attributes in yaxis (in your case that includes yaxis.domain).

To only update the title you should call relayout(gd, 'yaxis.title', 'new title'), Here's a working version: https://codepen.io/etpinard/pen/jzLOKo?editors=0010

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