Python matplotlib.backend_managers() Examples
The following are 6 code examples for showing how to use matplotlib.backend_managers(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
You may check out the related API usage on the sidebar.
You may also want to check out all available functions/classes of the module
matplotlib
, or try the search function
.
Example 1
Project: Mastering-Elasticsearch-7.0 Author: PacktPublishing File: backend_wx.py License: MIT License | 5 votes |
def set_function(self, string): self.SetStatusText("%s" % string, 1) # tools for matplotlib.backend_managers.ToolManager:
Example 2
Project: GraphicDesignPatternByPython Author: Relph1119 File: backend_wx.py License: MIT License | 5 votes |
def set_function(self, string): self.SetStatusText("%s" % string, 1) # def set_measurement(self, string): # self.SetStatusText("Measurement: %s" % string, 2) # tools for matplotlib.backend_managers.ToolManager:
Example 3
Project: python3_ios Author: holzschu File: backend_wx.py License: BSD 3-Clause "New" or "Revised" License | 5 votes |
def set_function(self, string): self.SetStatusText("%s" % string, 1) # def set_measurement(self, string): # self.SetStatusText("Measurement: %s" % string, 2) # tools for matplotlib.backend_managers.ToolManager:
Example 4
Project: wxGlade Author: wxGlade File: matplotlib_example.py License: MIT License | 5 votes |
def init_toolmanager(self): self.toolmanager = matplotlib.backend_managers.ToolManager(self.canvas.figure) self.toolmanager.add_tool('viewpos', 'ToolViewsPositions') # required for pan/zoom/home/back/forward self.toolmanager.add_tool('pan', 'ToolPan') # pan w. mouse and zoom w. wheel with 'p' key self.toolmanager.add_tool('zoom', 'ToolZoom') # zoom to rect with 'o' key self.toolmanager.add_tool('home', 'ToolHome') # 'h', 'r', 'home' if hasattr(matplotlib.backend_managers, "ToolHelp"): self.toolmanager.add_tool('help', 'ToolHelp') # 'F1' self.toolmanager.add_tool('back', 'ToolBack') # 'left', 'c', 'backspace' self.toolmanager.add_tool('forward', 'ToolForward') # 'right', 'v' self.toolmanager.add_tool('save', 'ToolSaveFigure') # 's', 'ctrl+s' self.toolmanager.add_tool('grid', 'ToolGrid') # toggle throug major h/v grids with 'g' key self.toolmanager.add_tool('grid_minor', 'ToolMinorGrid') # toggle throug major/minor grids with 'G' key self.toolmanager.add_tool('yscale', 'ToolYScale') # toggle lin/log scaling with 'l' key self.toolmanager.add_tool('xscale', 'ToolXScale') # toggle lin/log scaling with 'k','L' keys # some tools will only be available with matplotlib 3.0: if hasattr(matplotlib.backend_managers, "ToolCopyToClipboard"): self.toolmanager.add_tool('copy', 'ToolCopyToClipboard') self.toolmanager.add_tool('rubberband', 'ToolRubberband') self.toolmanager.add_tool('setcursor', 'ToolSetCursor') self.toolmanager.toolmanager_connect("tool_trigger_home", self.set_history_buttons) self.toolmanager.toolmanager_connect("tool_trigger_back", self.set_history_buttons) self.toolmanager.toolmanager_connect("tool_trigger_forward", self.set_history_buttons)
Example 5
Project: coffeegrindsize Author: jgagneastro File: backend_wx.py License: MIT License | 5 votes |
def set_function(self, string): self.SetStatusText("%s" % string, 1) # def set_measurement(self, string): # self.SetStatusText("Measurement: %s" % string, 2) # tools for matplotlib.backend_managers.ToolManager:
Example 6
Project: CogAlg Author: boris-kz File: backend_wx.py License: MIT License | 5 votes |
def set_function(self, string): self.SetStatusText("%s" % string, 1) # tools for matplotlib.backend_managers.ToolManager: