groundhog
groundhog copied to clipboard
Plotly Graph Patterns Hatching Texture
Hello!
I have used groundhog in plotly dash and I must say it is an amazing library. Great work!
I was however wondering if there is a way or roadmap to integrate plotly Hatching to visualise texture or granulorometry in a fashion akin to: https://plotly.com/python/pattern-hatching-texture/ as a means of showing the particle distribution of given depths within a certain range
Any feedback will be very helpful,
Regards,
Chimango.
Many thanks for the suggestion, hatching would indeed be a useful feature. It would require some refactoring of the LogPlot code as this code is currently using rectangles for each layer, which are plotted as shapes. I will investigate the feasibility and will put it on the roadmap for the next release if feasible.
We do have to realise that we will be limited to the standard Plotly hatching patterns: ['/', '\\', 'x', '-', '|', '+', '.']
. I cannot see a way to include custom hatch patterns. So distinction between coarser and finer sands will not be possible.
I have however recently included a Matplotlib alternative for creating logplots and it seems like there are more possibilities there: https://matplotlib.org/stable/gallery/shapes_and_collections/hatch_style_reference.html
Hatching patterns can now be included in the LogPlotMatplotlib
. The argument hatchpatterns={"Sand": "...", "Clay": '////', 'Rock':'oo', 'Silt': '|||'}
maps a soil type to a certain hatching pattern. With Matplotlib, it is possible to create a distinction between coarser and fine sands. This is included in v0.9.0 of groundhog.
For Plotly, this issue is still under investigation.