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

[ENH]: Subtitle and caption #23873

Copy link
Copy link
Open
Open
Copy link
@JanPalasek

Description

@JanPalasek
Issue body actions

Problem

I would like to add subtitle and caption to my axis. Currently, afaik the recommended approach is for subtitle to:

  1. Use suptitle of figure together with title of the axis.
  2. Manually position your own text to define the subtitle.

However, often I have multiple axes for one figure, where I would like to add subtitle to all of them. In this situation, suptitle is not feasible. Also, positioning it using text API can be a bit tedious, especially when having a lot of axes.

With caption, the recommended approach (afaik) is to position it with text. When I do this in practice, I have to manually tune the position for every graph, depending on the value of xlabel.

Proposed solution

It would be great if we had a bit higher-level API for subtitle and caption. They are very comonly needed when plotting the data.

Two new functions on Axis object like set_subtitle and set_caption would be great!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No 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.