File tree Expand file tree Collapse file tree
plotly/matplotlylib/mplexporter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def get_text_style(text):
200200def 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
258258def 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 ])
You can’t perform that action at this time.
0 commit comments