figure centered FigureManager and ToolManager · fariza/matplotlib@07d30a6 · GitHub
Skip to content

Commit 07d30a6

Browse files
committed
figure centered FigureManager and ToolManager
1 parent 8915407 commit 07d30a6

5 files changed

Lines changed: 229 additions & 55 deletions

File tree

Lines changed: 59 additions & 0 deletions

‎lib/matplotlib/backend_bases.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,6 +2718,28 @@ def add_element(self, element, expand, place):
27182718
"""
27192719
pass
27202720

2721+
def replace_element(self, oldelement, newelement):
2722+
"""Replaces a gui widget for another
2723+
2724+
Parameters
2725+
----------
2726+
oldelement: A gui element.
2727+
The element to be replaced
2728+
newelement: A gui element.
2729+
The replacement element
2730+
"""
2731+
pass
2732+
2733+
def remove_element(self, element):
2734+
"""Removes a widget
2735+
2736+
Parameters
2737+
----------
2738+
element: A gui element
2739+
Element to be removed from the gui
2740+
"""
2741+
pass
2742+
27212743
def destroy_event(self, *args):
27222744
"""Fires this event when the window wants to destroy itself.
27232745

‎lib/matplotlib/backend_managers.py‎

Lines changed: 77 additions & 25 deletions

0 commit comments

Comments
 (0)