Python matplotlib.ticker.Base() Examples
The following are 5
code examples of matplotlib.ticker.Base().
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.ticker
, or try the search function
.
Example #1
Source File: dates.py From Computable with MIT License | 5 votes |
def __init__(self, base=1, month=1, day=1, tz=None): """ Mark years that are multiple of base on a given month and day (default jan 1). """ DateLocator.__init__(self, tz) self.base = ticker.Base(base) self.replaced = {'month': month, 'day': day, 'hour': 0, 'minute': 0, 'second': 0, 'tzinfo': tz }
Example #2
Source File: dates.py From matplotlib-4-abaqus with MIT License | 5 votes |
def __init__(self, base=1, month=1, day=1, tz=None): """ Mark years that are multiple of base on a given month and day (default jan 1). """ DateLocator.__init__(self, tz) self.base = ticker.Base(base) self.replaced = {'month': month, 'day': day, 'hour': 0, 'minute': 0, 'second': 0, 'tzinfo': tz }
Example #3
Source File: dates.py From neural-network-animation with MIT License | 5 votes |
def __init__(self, base=1, month=1, day=1, tz=None): """ Mark years that are multiple of base on a given month and day (default jan 1). """ DateLocator.__init__(self, tz) self.base = ticker.Base(base) self.replaced = {'month': month, 'day': day, 'hour': 0, 'minute': 0, 'second': 0, 'tzinfo': tz }
Example #4
Source File: mpl_helper.py From xrayutilities with GNU General Public License v2.0 | 5 votes |
def __init__(self, nbins=7, symmetric=True): if parse_version(matplotlib.__version__) < parse_version('3.1.0'): self._base = mticker.Base(1.0) else: self._base = mticker._Edge_integer(1.0, 0) self.set_params(nbins, symmetric)
Example #5
Source File: dates.py From twitter-stock-recommendation with MIT License | 5 votes |
def __init__(self, base=1, month=1, day=1, tz=None): """ Mark years that are multiple of base on a given month and day (default jan 1). """ DateLocator.__init__(self, tz) self.base = ticker.Base(base) self.replaced = {'month': month, 'day': day, 'hour': 0, 'minute': 0, 'second': 0, 'tzinfo': tz }