Get the style dictionary for matplotlib path objects
(path, fill=True)
| 128 | |
| 129 | |
| 130 | def get_path_style(path, fill=True): |
| 131 | """Get the style dictionary for matplotlib path objects""" |
| 132 | style = {} |
| 133 | style["alpha"] = path.get_alpha() |
| 134 | if style["alpha"] is None: |
| 135 | style["alpha"] = 1 |
| 136 | style["edgecolor"] = export_color(path.get_edgecolor()) |
| 137 | if fill: |
| 138 | style["facecolor"] = export_color(path.get_facecolor()) |
| 139 | else: |
| 140 | style["facecolor"] = "none" |
| 141 | style["edgewidth"] = path.get_linewidth() |
| 142 | style["dasharray"] = get_dasharray(path) |
| 143 | style["zorder"] = path.get_zorder() |
| 144 | return style |
| 145 | |
| 146 | |
| 147 | def get_line_style(line): |
nothing calls this directly
no test coverage detected