Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Bug]: canvas.manager.set_window_title does not work to figure withWebAgg backend #29256

Closed
@YongcaiHuang

Description

@YongcaiHuang

Bug summary

canvas.manager.set_window_title does not work to figure withWebAgg backend (but MacOSX). the title is stillFigure 1 by default.

Code for reproduction

importmatplotlib.pyplotaspltimportnumpyasnpimportmatplotlibmatplotlib.use("WebAgg")fig=plt.figure(figsize=(7,5))fig.canvas.manager.set_window_title("My figure")ax=fig.add_subplot(111)dx,dy=0.05,0.05y,x=np.mgrid[slice(1,5+dy,dy),slice(1,5+dx,dx)]z=np.sin(x)**10+np.cos(10+y*x)*np.cos(x)cf=ax.contourf(x+dx/2.,y+dy/2.,z)fig.colorbar(cf,ax=ax)plt.show()

Actual outcome

image

Expected outcome

image

Additional information

it works in MacOSX backends

image

Operating system

macOS Sequoia 15.1.1

Matplotlib Version

3.9.3

Matplotlib Backend

WebAgg

Python version

3.12.7

Jupyter version

No response

Installation

pip

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp