8000 Backport PR #27776 on branch v3.8.x (Better document the relation between figure and manager) by meeseeksmachine · Pull Request #27777 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Backport PR #27776 on branch v3.8.x (Better document the relation between figure and manager) #27777

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/matplotlib/backend_bases.py
86E6
Original file line number Diff line number Diff line change
Expand Up @@ -2584,9 +2584,13 @@ class FigureManagerBase:
backend-independent way. It's an adapter for the real (GUI) framework that
represents the visual figure on screen.
GUI backends define from this class to translate common operations such
The figure manager is connected to a specific canvas instance, which in turn
is connected to a specific figure instance. To access a figure manager for
a given figure in user code, you typically use ``fig.canvas.manager``.
GUI backends derive from this class to translate common operations such
as *show* or *resize* to the GUI-specific code. Non-GUI backends do not
support these operations an can just use the base class.
support these operations and can just use the base class.
This following basic operations are accessible:
Expand Down Expand Up @@ -2771,6 +2775,11 @@ def set_window_title(self, title):
Set the title text of the window containing the figure.
This has no effect for non-GUI (e.g., PS) backends.
Examples
--------
>>> fig = plt.figure()
>>> fig.canvas.manager.set_window_title('My figure')
"""


Expand Down
0