MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / convert

Method convert

lib/matplotlib/dates.py:1759–1766  ·  view source on GitHub ↗

If *value* is not already a number or sequence of numbers, convert it with `date2num`. The *unit* and *axis* arguments are not used.

(value, unit, axis)

Source from the content-addressed store, hash-verified

1757
1758 @staticmethod
1759 def convert(value, unit, axis):
1760 """
1761 If *value* is not already a number or sequence of numbers, convert it
1762 with `date2num`.
1763
1764 The *unit* and *axis* arguments are not used.
1765 """
1766 return date2num(value)
1767
1768 @staticmethod
1769 def default_units(x, axis):

Callers 5

pil_to_arrayFunction · 0.45
_pil_png_to_float_arrayFunction · 0.45
grab_frameMethod · 0.45
convert_unitsMethod · 0.45
convertMethod · 0.45

Calls 1

date2numFunction · 0.85

Tested by

no test coverage detected