Skip to content

Tight automargins with label/title/legend clipping #4376

@wbrgss

Description

@wbrgss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions