Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2445d7e commit 986d80fCopy full SHA for 986d80f
1 file changed
lib/matplotlib/units.py
@@ -19,12 +19,12 @@
19
class DateConverter(units.ConversionInterface):
20
21
@staticmethod
22
- def convert(value, unit):
+ def convert(value, unit, axis):
23
'convert value to a scalar or array'
24
return dates.date2num(value)
25
26
27
- def axisinfo(unit):
+ def axisinfo(unit, axis):
28
'return major and minor tick locators and formatters'
29
if unit!='date': return None
30
majloc = dates.AutoDateLocator()
@@ -34,7 +34,7 @@ def axisinfo(unit):
34
label='date')
35
36
37
- def default_units(x):
+ def default_units(x, axis):
38
'return the default unit for x or None'
39
return 'date'
40
0 commit comments