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

[Bug]: Font-Fallback implemented in 3.6.0 does not work for title or labels #23992

Copy link
Copy link
Closed
@tinyboxvk

Description

@tinyboxvk
Issue body actions

Bug summary

Font-Fallback implemented in #20740 does not work for title or labels.

Code for reproduction

import matplotlib.pyplot as plt


def plot_graph():
    fig, ax = plt.subplots(figsize=(6, 3))
    text = 'There are 多个汉字 👈👉 in between!'
    plt.rcParams['font.family'] = ['Segoe UI Emoji', 'SimHei']
    plt.figtext(0.3, 0.7, text)
    plt.title(text)
    plt.xlabel(text)
    plt.ylabel(text)
    plt.show()


plot_graph()

Actual outcome

2022-09-23_22-07-35_python

Expected outcome

Title and labels should be displayed correctly like the figtext.

Additional information

No response

Operating system

Windows

Matplotlib Version

3.6.0

Matplotlib Backend

TkAgg

Python version

3.10.7

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    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.