Set the title text of the window containing the figure. Examples -------- >>> fig = plt.figure() >>> fig.canvas.manager.set_window_title('My figure')
(self, title)
| 2890 | return self._window_title |
| 2891 | |
| 2892 | def set_window_title(self, title): |
| 2893 | """ |
| 2894 | Set the title text of the window containing the figure. |
| 2895 | |
| 2896 | Examples |
| 2897 | -------- |
| 2898 | >>> fig = plt.figure() |
| 2899 | >>> fig.canvas.manager.set_window_title('My figure') |
| 2900 | """ |
| 2901 | # This attribute is not defined in __init__ (but __init__ calls this |
| 2902 | # setter), as derived classes (real GUI managers) will store this |
| 2903 | # information directly on the widget; only the base (non-GUI) manager |
| 2904 | # class needs a specific attribute for it (so that filename escaping |
| 2905 | # can be checked in the test suite). |
| 2906 | self._window_title = title |
| 2907 | |
| 2908 | |
| 2909 | cursors = tools.cursors |
no outgoing calls
no test coverage detected