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

Axes title default color #14656

Copy link
Copy link
Closed
Closed
Copy link
@OriolAbril

Description

@OriolAbril
Issue body actions

Hi, I have just realized that ax.set_title() uses as default the color defined in rcParams["text.color"] instead of using the color from rcParams["axes.labelcolor"]. Why is that?

In my case, I was trying to create an style for dark figure background and light axes background. Therefore, as the title is on top of the figure background like the axis labels and ticklabels, I expected them to have the same color. Below there are two examples, both have axes.labelcolor white but they have different text.color.

image

image

Maybe 'color': rcParams['axes.labelcolor'] could be added to the default fontdict like axes.titlesize and axes.titleweight?

I added an ax.set_title to the style sheet reference script and only solarized theme will be modified by this. It could affect user made themes though, but I feel that it is more coherent like this.

Metadata

Metadata

Assignees

No one assigned

    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.