Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
|
@ -0,0 +1,28 @@
|
|||
"""UnitDblFormatter module containing class UnitDblFormatter."""
|
||||
|
||||
import matplotlib.ticker as ticker
|
||||
|
||||
__all__ = ['UnitDblFormatter']
|
||||
|
||||
|
||||
class UnitDblFormatter(ticker.ScalarFormatter):
|
||||
"""
|
||||
The formatter for UnitDbl data types.
|
||||
|
||||
This allows for formatting with the unit string.
|
||||
"""
|
||||
|
||||
def __call__(self, x, pos=None):
|
||||
# docstring inherited
|
||||
if len(self.locs) == 0:
|
||||
return ''
|
||||
else:
|
||||
return '{:.12}'.format(x)
|
||||
|
||||
def format_data_short(self, value):
|
||||
# docstring inherited
|
||||
return '{:.12}'.format(value)
|
||||
|
||||
def format_data(self, value):
|
||||
# docstring inherited
|
||||
return '{:.12}'.format(value)
|
Loading…
Add table
Add a link
Reference in a new issue