Get the style dictionary for matplotlib line objects
(line)
| 145 | |
| 146 | |
| 147 | def get_line_style(line): |
| 148 | """Get the style dictionary for matplotlib line objects""" |
| 149 | style = {} |
| 150 | style["alpha"] = line.get_alpha() |
| 151 | if style["alpha"] is None: |
| 152 | style["alpha"] = 1 |
| 153 | style["color"] = export_color(line.get_color()) |
| 154 | style["linewidth"] = line.get_linewidth() |
| 155 | style["dasharray"] = get_dasharray(line) |
| 156 | style["zorder"] = line.get_zorder() |
| 157 | style["drawstyle"] = line.get_drawstyle() |
| 158 | return style |
| 159 | |
| 160 | |
| 161 | def get_marker_style(line): |
nothing calls this directly
no test coverage detected