It is currently not possible (or at least documented) on how to add borders to subplots.
When using plotly js to make facet plots with shared axes, they are far too difficult to use (even with a simple 2x2 data matrix) because the users cannot distinguish between plots.
If subplots could have borders, this would greatly increase the usability of js facet plots.
Could you clarify what you mean by _border_ on subplots? If you could share a few screenshots, that would be very helpful. Thanks.
@Chris7 can you help us out a little?
Sorry about this -- got caught up with things. Here's a fiddle example:
https://jsfiddle.net/f2nt55dy/2/
The idea is to have a cross divider between the lines to distinguish between subplots. Some data configurations make it very difficult to distinguish between plots (especially when it goes to a 3x3 or 4x4 matrix!)
You mean something like https://jsfiddle.net/f2nt55dy/3/ ?
Ooo, clever. I like it.
I know there are a ton of feature requests, but having something that specified that plot options like borders apply at a 'per subplot' level as well as a 'per entire plot' level (similar to how you can segment legends into tracegroups) would be nice. Feel free to close this or if you want to add a note for a feature request keep it open.
Thanks @etpinard !
I'll leave it open. Thanks for taking the time to write us.
One thing that makes this issue a little harder to implement is that plotly.js doesn't currently expose the notion of a cartesian subplot. plotly.js subplots are simply pairs of x/y axes.
So, we can't just add a layout.subplot[0].border: true attribute.
But at some point, we are planning on adding some subplot generating transform. Maybe subplot borders could be set as an option there.
Are there any updates related to this issue?