MCPcopy Index your code
hub / github.com/plotly/plotly.py / get_grid_style

Function get_grid_style

plotly/matplotlylib/mplexporter/utils.py:258–266  ·  view source on GitHub ↗
(axis)

Source from the content-addressed store, hash-verified

256
257
258def get_grid_style(axis):
259 gridlines = axis.get_gridlines()
260 if axis.get_tick_params()["gridOn"] and len(gridlines) > 0:
261 color = export_color(gridlines[0].get_color())
262 alpha = gridlines[0].get_alpha()
263 dasharray = get_dasharray(gridlines[0])
264 return dict(gridOn=True, color=color, dasharray=dasharray, alpha=alpha)
265 else:
266 return {"gridOn": False}
267
268
269def get_figure_properties(fig):

Callers 1

get_axis_propertiesFunction · 0.85

Calls 2

export_colorFunction · 0.85
get_dasharrayFunction · 0.85

Tested by

no test coverage detected