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:
25842584 backend-independent way. It's an adapter for the real (GUI) framework that
25852585 represents the visual figure on screen.
25862586
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
25882592 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.
25902594
25912595 This following basic operations are accessible:
25922596
@@ -2771,6 +2775,11 @@ def set_window_title(self, title):
27712775 Set the title text of the window containing the figure.
27722776
27732777 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')
27742783 """
27752784
27762785
You can’t perform that action at this time.
0 commit comments