Skip to content

Tight automargins with label/title/legend clipping #4376

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
wbrgss opened this issue Nov 21, 2019 · 2 comments
Closed

Tight automargins with label/title/legend clipping #4376

wbrgss opened this issue Nov 21, 2019 · 2 comments

Comments

@wbrgss
Copy link
Contributor

wbrgss commented Nov 21, 2019

Related: #2985, #3579, #3607

I'm making another issue to document existing problems with text inside figures. Most of the problems have to do with tight explicit layout.margin + layout.(x|y)axis.automargin = True, but the first two examples in my codepen have no layout defined (using the default layout). Each Plotly.newPlot call has a comment above it describing the specific issue. Most of these examples are from our own docs.

Here is the codepen, using plotly-latest (v1.51.1): https://codepen.io/wbrgss/pen/ExxMXQP

I also have some screenshots from graphs using automargins; unfortunately I cannot easily, consistently reproduce them:

150° and 180° labels are cut off
scatterpolar_labels

axis labels overlap without rotating
splom_overlap

top legend text is cut off
barpolar_legend

If it would be helpful, I can try to create examples for these figures, but hopefully the codepen provides a good starting point. I realize that the axis labels/tick labels/legend text may be different issues, so if you'd like me to create separate issues/codepens I can do that also.

cc @nicolaskruchten @etpinard

@nicolaskruchten
Copy link
Contributor

Thanks Will!

A couple of notes:

  1. polar charts have no automargins and are not affected by automargin settings on x/y so that’s expected today, although fixing it would be a good feature to add!

  2. axis labels never rotate today, only tick labels, so that’s also not a malfunction but a missing feature

The legend thing seems like a bug though!

@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, 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 backlog. Thanks for your help - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants