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

Feature Request: Label Grouping and Multi-Level Axis Labels #6321

Copy link
Copy link
Open
@ghost

Description

Even though users can deal with axis labels on a higher level through the Formatter and Text classes, Matplotlib's handling of Labels is still very flat. At best users can change the string formatting through the Formatter class and text formatting (font, size, rotation...) through the Text class.

Neither approach, however, offers users the ability to represent their data more accurately by using multiple label levels on the same plot in the way Excel, Root or R do.

In Root axes instances can be plotted individually as objects and each one be assigned a new Label instance which allows maximal flexibility for the user.

Excel and R handle this issue similarly by using the data-name in the legend, instead of as axis labels, and then use the group of the data-name as axis labels. In both cases the end result looks like:

latex

No need to say that Root approach seems as an overkill and I'm more partial to Excel and R approach. A workaround by using hand-set text objects is provided in this StackOverflow question. The frequency of similar questions is the main motivation behind this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesNew featurekeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actiontopic: categorical

    Type

    No type

    Projects

    No projects

    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.