question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PX fixedrange=True overrides matching yaxis in facets

See original GitHub issue

Is this intentional? If so, how can i preserve matching yaxis?

import plotly.express as px
df = px.data.tips()
fig = px.scatter(df, x="total_bill", y="tip", color='sex', facet_col="day", facet_col_wrap=2)
fig.show()                                         # one yaxis for all facets

fig.update_yaxes(fixedrange=True) # yaxis changes

Edit: code, plots are the same

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaskruchtencommented, Aug 11, 2020

Oh, I see what you mean, sorry, I misunderstood. Yes, it would be nice if the fixedrange logic took into account the matching axes… For the moment you will have to manually set the y-axis range to get them to match.

0reactions
hbanieckicommented, Aug 11, 2020

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotly: How to hide axis titles in a plotly express figure with ...
Ideally, I would like to set hiding the repeated axes titles a default for faceted plots in general (or even better, just defaulting...
Read more >
Axes in Python - Plotly
Here's an example of manually specifying the x and y axis range for a faceted scatter plot created with Plotly Express. In [27]:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found