File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2607,9 +2607,13 @@ class FigureManagerBase:
2607
2607
backend-independent way. It's an adapter for the real (GUI) framework that
2608
2608
represents the visual figure on screen.
2609
2609
2610
- GUI backends define from this class to translate common operations such
2610
+ The figure manager is connected to a specific canvas instance, which in turn
2611
+ is connected to a specific figure instance. To access a figure manager for
2612
+ a given figure in user code, you typically use ``fig.canvas.manager``.
2613
+
2614
+ GUI backends derive from this class to translate common operations such
2611
2615
as *show* or *resize* to the GUI-specific code. Non-GUI backends do not
2612
- support these operations an can just use the base class.
2616
+ support these operations and can just use the base class.
2613
2617
2614
2618
This following basic operations are accessible:
2615
2619
@@ -2794,6 +2798,11 @@ def set_window_title(self, title):
2794
2798
Set the title text of the window containing the figure.
2795
2799
2796
2800
This has no effect for non-GUI (e.g., PS) backends.
2801
+
2802
+ Examples
2803
+ --------
2804
+ >>> fig = plt.figure()
2805
+ >>> fig.canvas.manager.set_window_title('My figure')
2797
2806
"""
2798
2807
2799
2808
You can’t perform that action at this time.
0 commit comments