Skip to content

Commit 793bfa9

Browse files
committed
(matplotlylib) Axis autotick —> tickmode.
This has been changed in plotlyjs.
1 parent 787793d commit 793bfa9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plotly/matplotlylib/mpltools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,13 @@ def prep_ticks(ax, index, ax_type, props):
394394
else:
395395
axis_dict['tick0'] = tick0
396396
axis_dict['dtick'] = dtick
397-
axis_dict['autotick'] = False
397+
axis_dict['tickmode'] = False
398398
elif scale == 'log':
399399
try:
400400
axis_dict['tick0'] = props['axes'][index]['tickvalues'][0]
401401
axis_dict['dtick'] = props['axes'][index]['tickvalues'][1] - \
402402
props['axes'][index]['tickvalues'][0]
403-
axis_dict['autotick'] = False
403+
axis_dict['tickmode'] = False
404404
except (IndexError, TypeError):
405405
axis_dict = dict(nticks=props['axes'][index]['nticks'])
406406
base = axis.get_transform().base
@@ -429,7 +429,7 @@ def prep_ticks(ax, index, ax_type, props):
429429
pass
430430
finally:
431431
axis_dict.pop('dtick', None)
432-
axis_dict.pop('autotick', None)
432+
axis_dict.pop('tickmode', None)
433433
axis_dict['range'] = mpl_dates_to_datestrings(
434434
props['xlim'], formatter
435435
)

plotly/tests/test_optional/test_matplotlylib/data/axis_scales.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
dtick=3,
4747
ticks='inside',
4848
showgrid=False,
49-
autotick=False,
49+
tickmode=False,
5050
zeroline=False,
5151
tickfont=Font(
5252
size=12.0
@@ -64,7 +64,7 @@
6464
dtick=13,
6565
ticks='inside',
6666
showgrid=False,
67-
autotick=False,
67+
tickmode=False,
6868
zeroline=False,
6969
tickfont=Font(
7070
size=12.0

0 commit comments

Comments
 (0)