Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 986d80f

Browse files
committed
Add new axis arguments to units.py docstring
svn path=/trunk/matplotlib/; revision=6924
1 parent 2445d7e commit 986d80f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/units.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
class DateConverter(units.ConversionInterface):
2020
2121
@staticmethod
22-
def convert(value, unit):
22+
def convert(value, unit, axis):
2323
'convert value to a scalar or array'
2424
return dates.date2num(value)
2525
2626
@staticmethod
27-
def axisinfo(unit):
27+
def axisinfo(unit, axis):
2828
'return major and minor tick locators and formatters'
2929
if unit!='date': return None
3030
majloc = dates.AutoDateLocator()
@@ -34,7 +34,7 @@ def axisinfo(unit):
3434
label='date')
3535
3636
@staticmethod
37-
def default_units(x):
37+
def default_units(x, axis):
3838
'return the default unit for x or None'
3939
return 'date'
4040

0 commit comments

Comments
 (0)