Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Table CSS needs cleanup #18962

Copy link
Copy link
Closed
Closed
Copy link
@timhoffm

Description

@timhoffm
Issue body actions

Bug report

in mpl.css we have:

table.docutils th {
    [...]
    width: 100px;
}

which causes problems for some tables, e.g. here
grafik

Note: This only happens on Firefox, not on Safari/Chrome/Edge.

The width limit came in via #2184. (ping @NelleV?)

I suppose it could be removed - anyway imposing a fixed width on basically all <th> does not seem reasonable. AFAICS there is almost no effect. The only difference I found is that the table in the loc parameter in https://matplotlib.org/3.3.3/api/_as_gen/matplotlib.axes.Axes.legend.html#matplotlib.axes.Axes.legend wraps it's header:

with width:
grafik

without width:
grafik

Required Actions:

  1. Remove the width parameter.
  2. Find out why the legend loc table header wraps and add some CSS to prevent that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.