mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.59k stars 1.93k forks source link

[Feature Request] style parameter in `displot`, `catplot` and `lmplot` similar to `relplot` #3784

Closed hguturu closed 1 week ago

hguturu commented 1 week ago

Currently, relplot has style parameter that provides an additional way to "facet" the data beyond col, row and hue using linestyle. It would be nice if this was extended to the other figure plot types. This would also lead to a more consistent API across the different facet grid plots.

References for supporting in underlying matplotlib. https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html https://matplotlib.org/stable/gallery/shapes_and_collections/hatch_style_reference.html

mwaskom commented 1 week ago

Thanks for the suggestion. It's unlikely that this will be added any point soon, but the objects interface provides a much wider range of mappable properties.

hguturu commented 1 week ago

Can you clarify the object interface? That would involve manual modification of the the plot similar to using matplotlib objects directly?

mwaskom commented 1 week ago

https://seaborn.pydata.org/tutorial/objects_interface.html

hguturu commented 1 week ago

Oh interesting. I wasn't aware of this, this is similar to the plotly object interface. Thanks.