Skip to content

Commit dc6c302

Browse files
authored
Merge pull request #5598 from timhoffm/tick-params
Don't use matplotlib internal API _major_tick_kw
2 parents 92aea8b + af8e14b commit dc6c302

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plotly/matplotlylib/mplexporter/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def get_text_style(text):
200200
def get_axis_properties(axis):
201201
"""Return the property dictionary for a matplotlib.Axis instance"""
202202
props = {}
203-
label1On = axis._major_tick_kw.get("label1On", True)
203+
label1On = axis.get_tick_params().get("label1On", True)
204204

205205
if isinstance(axis, matplotlib.axis.XAxis):
206206
if label1On:
@@ -257,7 +257,7 @@ def get_axis_properties(axis):
257257

258258
def get_grid_style(axis):
259259
gridlines = axis.get_gridlines()
260-
if axis._major_tick_kw["gridOn"] and len(gridlines) > 0:
260+
if axis.get_tick_params()["gridOn"] and len(gridlines) > 0:
261261
color = export_color(gridlines[0].get_color())
262262
alpha = gridlines[0].get_alpha()
263263
dasharray = get_dasharray(gridlines[0])

0 commit comments

Comments
 (0)