(axis)
| 256 | |
| 257 | |
| 258 | def 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 | |
| 269 | def get_figure_properties(fig): |
no test coverage detected