plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
15.98k stars 2.53k forks source link

add simple independent axes for facet_row and facet_col #4530

Open EmreAtes opened 6 months ago

EmreAtes commented 6 months ago

Right now it is possible to have independent axes labels/ticks for facets using this trick: https://stackoverflow.com/questions/60997189/how-can-i-make-faceted-plots-in-plotly-have-their-own-individual-yaxes-tick-labe

However, it is kind of hard to remember the 4-line solution by heart.

Is it possible to add something like independent_facet_y=True in the kwargs for plots that support facet? For plots where e.g., facet is age and y axis is height, it's very difficult to interpret data since the smaller values are basically invisible without doing this.

Ideally setting the flag would display axes ticks for each plot and scale the plots according to each facet's range.

For example, seaborn has sharex and sharey arguments that basically do this https://seaborn.pydata.org/generated/seaborn.catplot.html#seaborn-catplot

Coding-with-Adam commented 6 months ago

Thanks for the suggestion, @EmreAtes