Python matplotlib.cbook.silent_list() Examples
The following are 30
code examples of matplotlib.cbook.silent_list().
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.cbook
, or try the search function
.
Example #1
Source File: _base.py From neural-network-animation with MIT License | 6 votes |
def get_xticklabels(self, minor=False, which=None): """ Get the x tick labels as a list of :class:`~matplotlib.text.Text` instances. Parameters ---------- minor : bool If True return the minor ticklabels, else return the major ticklabels which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text xticklabel', self.xaxis.get_ticklabels(minor=minor, which=which))
Example #2
Source File: _base.py From Mastering-Elasticsearch-7.0 with MIT License | 6 votes |
def get_xticklabels(self, minor=False, which=None): """ Get the x tick labels as a list of `~matplotlib.text.Text` instances. Parameters ---------- minor : bool, optional If True return the minor ticklabels, else return the major ticklabels. which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of `~matplotlib.text.Text` instances. """ return cbook.silent_list('Text xticklabel', self.xaxis.get_ticklabels(minor=minor, which=which))
Example #3
Source File: _base.py From Mastering-Elasticsearch-7.0 with MIT License | 6 votes |
def get_yticklabels(self, minor=False, which=None): """ Get the y tick labels as a list of `~matplotlib.text.Text` instances. Parameters ---------- minor : bool If True return the minor ticklabels, else return the major ticklabels which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of `~matplotlib.text.Text` instances. """ return cbook.silent_list('Text yticklabel', self.yaxis.get_ticklabels(minor=minor, which=which))
Example #4
Source File: _base.py From neural-network-animation with MIT License | 6 votes |
def get_yticklabels(self, minor=False, which=None): """ Get the x tick labels as a list of :class:`~matplotlib.text.Text` instances. Parameters ---------- minor : bool If True return the minor ticklabels, else return the major ticklabels which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text yticklabel', self.yaxis.get_ticklabels(minor=minor, which=which))
Example #5
Source File: _base.py From GraphicDesignPatternByPython with MIT License | 6 votes |
def get_xticklabels(self, minor=False, which=None): """ Get the x tick labels as a list of :class:`~matplotlib.text.Text` instances. Parameters ---------- minor : bool, optional If True return the minor ticklabels, else return the major ticklabels. which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text xticklabel', self.xaxis.get_ticklabels(minor=minor, which=which))
Example #6
Source File: _base.py From GraphicDesignPatternByPython with MIT License | 6 votes |
def get_yticklabels(self, minor=False, which=None): """ Get the y tick labels as a list of :class:`~matplotlib.text.Text` instances. Parameters ---------- minor : bool If True return the minor ticklabels, else return the major ticklabels which : None, ('minor', 'major', 'both') Overrides `minor`. Selects which ticklabels to return Returns ------- ret : list List of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text yticklabel', self.yaxis.get_ticklabels(minor=minor, which=which))
Example #7
Source File: axes3d.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_zticklabels(self, minor=False): """ Get ztick labels as a list of Text instances. See :meth:`matplotlib.axes.Axes.get_yticklabels` for more details. .. note:: Minor ticks are not supported. .. versionadded:: 1.1.0 """ return cbook.silent_list('Text zticklabel', self.zaxis.get_ticklabels(minor=minor))
Example #8
Source File: axes3d.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_zminorticklabels(self): """ Get the ztick labels as a list of Text instances .. note:: Minor ticks are not supported. This function was added only for completeness. .. versionadded :: 1.1.0 """ return cbook.silent_list('Text zticklabel', self.zaxis.get_minorticklabels())
Example #9
Source File: axes3d.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_zmajorticklabels(self): """ Get the ztick labels as a list of Text instances .. versionadded :: 1.1.0 """ return cbook.silent_list('Text zticklabel', self.zaxis.get_majorticklabels())
Example #10
Source File: axis.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_gridlines(self): 'Return the grid lines as a list of Line2D instance' ticks = self.get_major_ticks() return cbook.silent_list('Line2D gridline', [tick.gridline for tick in ticks])
Example #11
Source File: axis.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_gridlines(self): 'Return the grid lines as a list of Line2D instance' ticks = self.get_major_ticks() return cbook.silent_list('Line2D gridline', [tick.gridline for tick in ticks])
Example #12
Source File: axis.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_majorticklabels(self): 'Return a list of Text instances for the major ticklabels' ticks = self.get_major_ticks() labels1 = [tick.label1 for tick in ticks if tick.label1On] labels2 = [tick.label2 for tick in ticks if tick.label2On] return cbook.silent_list('Text major ticklabel', labels1 + labels2)
Example #13
Source File: axis.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_majorticklines(self): 'Return the major tick lines as a list of Line2D instances' lines = [] ticks = self.get_major_ticks() for tick in ticks: lines.append(tick.tick1line) lines.append(tick.tick2line) return cbook.silent_list('Line2D ticklines', lines)
Example #14
Source File: axis.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_majorticklines(self): 'Return the major tick lines as a list of Line2D instances' lines = [] ticks = self.get_major_ticks() for tick in ticks: lines.append(tick.tick1line) lines.append(tick.tick2line) return cbook.silent_list('Line2D ticklines', lines)
Example #15
Source File: legend.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_texts(self): 'Return a list of `~.text.Text` instances in the legend.' return silent_list('Text', self.texts)
Example #16
Source File: axis.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_minorticklabels(self): 'Return a list of Text instances for the minor ticklabels' ticks = self.get_minor_ticks() labels1 = [tick.label1 for tick in ticks if tick.label1On] labels2 = [tick.label2 for tick in ticks if tick.label2On] return cbook.silent_list('Text minor ticklabel', labels1 + labels2)
Example #17
Source File: axis.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_minorticklines(self): 'Return the minor tick lines as a list of Line2D instances' lines = [] ticks = self.get_minor_ticks() for tick in ticks: lines.append(tick.tick1line) lines.append(tick.tick2line) return cbook.silent_list('Line2D ticklines', lines)
Example #18
Source File: _base.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_ymajorticklabels(self): """ Get the major y tick labels. Returns ------- labels : list List of :class:`~matplotlib.text.Text` instances """ return cbook.silent_list('Text yticklabel', self.yaxis.get_majorticklabels())
Example #19
Source File: axis.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_majorticklabels(self): 'Return a list of Text instances for the major ticklabels' ticks = self.get_major_ticks() labels1 = [tick.label1 for tick in ticks if tick.label1On] labels2 = [tick.label2 for tick in ticks if tick.label2On] return cbook.silent_list('Text major ticklabel', labels1 + labels2)
Example #20
Source File: legend.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_texts(self): 'Return a list of `~.text.Text` instances in the legend.' return silent_list('Text', self.texts)
Example #21
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_yminorticklabels(self): """ Get the minor y tick labels as a list of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text yticklabel', self.yaxis.get_minorticklabels())
Example #22
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_ymajorticklabels(self): """ Get the major y tick labels as a list of :class:`~matplotlib.text.Text` instances. """ return cbook.silent_list('Text yticklabel', self.yaxis.get_majorticklabels())
Example #23
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_xminorticklabels(self): """ Get the x minor tick labels as a list of :class:`matplotlib.text.Text` instances. """ return cbook.silent_list('Text xticklabel', self.xaxis.get_minorticklabels())
Example #24
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_yticklines(self): """Get the ytick lines as a list of Line2D instances""" return cbook.silent_list('Line2D ytickline', self.yaxis.get_ticklines()) #### Adding and tracking artists
Example #25
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_ygridlines(self): """Get the y grid lines as a list of Line2D instances""" return cbook.silent_list('Line2D ygridline', self.yaxis.get_gridlines())
Example #26
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_xticklines(self): """Get the xtick lines as a list of Line2D instances""" return cbook.silent_list('Text xtickline', self.xaxis.get_ticklines())
Example #27
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_xgridlines(self): """Get the x grid lines as a list of Line2D instances""" return cbook.silent_list('Line2D xgridline', self.xaxis.get_gridlines())
Example #28
Source File: _base.py From neural-network-animation with MIT License | 5 votes |
def get_lines(self): """Return a list of lines contained by the Axes""" return cbook.silent_list('Line2D', self.lines)
Example #29
Source File: axis.py From neural-network-animation with MIT License | 5 votes |
def get_minorticklines(self): 'Return the minor tick lines as a list of Line2D instances' lines = [] ticks = self.get_minor_ticks() for tick in ticks: lines.append(tick.tick1line) lines.append(tick.tick2line) return cbook.silent_list('Line2D ticklines', lines)
Example #30
Source File: axis.py From neural-network-animation with MIT License | 5 votes |
def get_majorticklines(self): 'Return the major tick lines as a list of Line2D instances' lines = [] ticks = self.get_major_ticks() for tick in ticks: lines.append(tick.tick1line) lines.append(tick.tick2line) return cbook.silent_list('Line2D ticklines', lines)