File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2584,9 +2584,13 @@ class FigureManagerBase:
2584
2584
backend-independent way. It's an adapter for the real (GUI) framework that
2585
2585
represents the visual figure on screen.
2586
2586
2587
- GUI backends define from this class to translate common operations such
2587
+ The figure manager is connected to a specific canvas instance, which in turn
2588
+ is connected to a specific figure instance. To access a figure manager for
2589
+ a given figure in user code, you typically use ``fig.canvas.manager``.
2590
+
2591
+ GUI backends derive from this class to translate common operations such
2588
2592
as *show* or *resize* to the GUI-specific code. Non-GUI backends do not
2589
- support these operations an can just use the base class.
2593
+ support these operations and can just use the base class.
2590
2594
2591
2595
This following basic operations are accessible:
2592
2596
@@ -2771,6 +2775,11 @@ def set_window_title(self, title):
2771
2775
Set the title text of the window containing the figure.
2772
2776
2773
2777
This has no effect for non-GUI (e.g., PS) backends.
2778
+
2779
+ Examples
2780
+ --------
2781
+ >>> fig = plt.figure()
2782
+ >>> fig.canvas.manager.set_window_title('My figure')
2774
2783
"""
2775
2784
2776
2785
You can’t perform that action at this time.
0 commit comments