plotly / plotly.py

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

Add Support for fill Hatching /Patterns styles in Plotly Boxplots [ Enhancement Request ] #4503

Open Isurusachitha opened 5 months ago

Isurusachitha commented 5 months ago

Issue Description Screenshot 2024-01-31 110419 :

The current implementation of Plotly includes support for fill patterns (hatching or texture) in various chart types such as Bar charts, Histograms, Polar Bars, Area charts, and Pie charts. However, this crucial feature is notably absent in Plotly Boxplots.

Request:

Considering the widespread use of Boxplots in scientific data visualization, especially in grouped boxplots, the addition of fill patterns to Plotly Boxplots would significantly enhance the interactive and informative aspects of plots. This feature is essential for various reasons:

Accessibility: Introducing fill patterns allows for double-encoding variables, making visualizations more accessible to users with visual impairments. This improvement goes beyond the use of color alone.

Additional Variable Encoding: The inclusion of fill patterns provides the ability to encode an additional variable, offering more comprehensive insights and analysis possibilities.

Print-Friendly Charts: The option to use fill patterns in Boxplots makes charts more printer-friendly, especially in black and white, catering to situations where color might not be distinguishable.

By addressing this enhancement request, Plotly can further enhance its capabilities and cater to a wider range of users with diverse visualization needs.

Coding-with-Adam commented 5 months ago

Thank you for the suggestion, @Isurusachitha . Is this something you would like to try to build and create a pull request for?