Skip to content

Dividers between subplots #977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Chris7 opened this issue Sep 26, 2016 · 8 comments
Closed

Dividers between subplots #977

Chris7 opened this issue Sep 26, 2016 · 8 comments
Labels
feature something new

Comments

@Chris7
Copy link

Chris7 commented Sep 26, 2016

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.

@etpinard
Copy link
Contributor

etpinard commented Sep 27, 2016

Could you clarify what you mean by border on subplots? If you could share a few screenshots, that would be very helpful. Thanks.

@etpinard
Copy link
Contributor

etpinard commented Oct 3, 2016

@Chris7 can you help us out a little?

@Chris7
Copy link
Author

Chris7 commented Oct 3, 2016

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!)

@etpinard
Copy link
Contributor

etpinard commented Oct 4, 2016

You mean something like https://jsfiddle.net/f2nt55dy/3/ ?

@Chris7
Copy link
Author

Chris7 commented Oct 4, 2016

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 !

@etpinard
Copy link
Contributor

etpinard commented Oct 4, 2016

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.

@lgervich
Copy link

Are there any updates related to this issue?

@gvwilson
Copy link
Contributor

gvwilson commented Jun 5, 2024

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

@gvwilson gvwilson closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

4 participants