Python matplotlib.backend_bases.NavigationToolbar2() Examples

The following are 10 code examples of matplotlib.backend_bases.NavigationToolbar2(). 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.backend_bases , or try the search function .
Example #1
Source File: backend_webagg.py    From Computable with MIT License 5 votes vote down vote up
def _init_toolbar(self):
        # Use the standard toolbar items + download button
        toolitems = (backend_bases.NavigationToolbar2.toolitems +
            (('Download', 'Download plot', 'download', 'download'),))

        NavigationToolbar2WebAgg.toolitems = \
            tuple(
                    (text, tooltip_text, self._jquery_icon_classes[image_file],
                    name_of_method)
                  for text, tooltip_text, image_file, name_of_method
                  in toolitems if image_file in self._jquery_icon_classes)

        self.message = ''
        self.cursor = 0 
Example #2
Source File: backend_webagg_core.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #3
Source File: backend_webagg.py    From matplotlib-4-abaqus with MIT License 5 votes vote down vote up
def _init_toolbar(self):
        # Use the standard toolbar items + download button
        toolitems = (backend_bases.NavigationToolbar2.toolitems +
            (('Download', 'Download plot', 'download', 'download'),))

        NavigationToolbar2WebAgg.toolitems = \
            tuple(
                    (text, tooltip_text, self._jquery_icon_classes[image_file],
                    name_of_method)
                  for text, tooltip_text, image_file, name_of_method
                  in toolitems if image_file in self._jquery_icon_classes)

        self.message = ''
        self.cursor = 0 
Example #4
Source File: backend_webagg_core.py    From neural-network-animation with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #5
Source File: backend_webagg_core.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #6
Source File: backend_webagg_core.py    From python3_ios with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #7
Source File: backend_webagg_core.py    From ImageFusion with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #8
Source File: backend_webagg_core.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #9
Source File: backend_webagg_core.py    From CogAlg with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1) 
Example #10
Source File: backend_webagg_core.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def release_zoom(self, event):
        backend_bases.NavigationToolbar2.release_zoom(self, event)
        self.canvas.send_event(
            "rubberband", x0=-1, y0=-1, x1=-1, y1=-1)