PX fixedrange=True overrides matching yaxis in facets
See original GitHub issueIs 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Thanks!