-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: canvas.manager.set_window_title does not work to figure with WebAgg
backend
#29256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, it is an interesting bug! When using the matplotlib/lib/matplotlib/backends/backend_webagg_core.py Lines 454 to 456 in 9af426b
However on the next render, which is essentially immediate, the matplotlib/lib/matplotlib/backends/backend_webagg_core.py Lines 330 to 334 in 9af426b
For other backends such as I expect there has been some historical confusion here as For consistency with other backends like An alternative fix is to keep the text above the figure in the web page as the figure label, and use |
WebAgg supports multiple figures in a single webpage; we can't map a single figure's title to the entire document. |
I agree, this is the way to go. AFAICS, the meaning of |
Bug summary
canvas.manager.set_window_title does not work to figure with
WebAgg
backend (but MacOSX). the title is stillFigure 1
by default.Code for reproduction
Actual outcome
Expected outcome
Additional information
it works in MacOSX backends
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
The text was updated successfully, but these errors were encountered: