Python matplotlib.backend_managers() Examples

The following are 6 code examples of matplotlib.backend_managers(). 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 also want to check out all available functions/classes of the module matplotlib , or try the search function .
Example #1
Source File: backend_wx.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def set_function(self, string):
        self.SetStatusText("%s" % string, 1)


# tools for matplotlib.backend_managers.ToolManager: 
Example #2
Source File: backend_wx.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
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
Source File: backend_wx.py    From python3_ios with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
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
Source File: matplotlib_example.py    From wxGlade with MIT License 5 votes vote down vote up
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
Source File: backend_wx.py    From coffeegrindsize with MIT License 5 votes vote down vote up
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
Source File: backend_wx.py    From CogAlg with MIT License 5 votes vote down vote up
def set_function(self, string):
        self.SetStatusText("%s" % string, 1)


# tools for matplotlib.backend_managers.ToolManager: