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

Function get_line_style

plotly/matplotlylib/mplexporter/utils.py:147–158  ·  view source on GitHub ↗

Get the style dictionary for matplotlib line objects

(line)

Source from the content-addressed store, hash-verified

145
146
147def 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
161def get_marker_style(line):

Callers

nothing calls this directly

Calls 2

export_colorFunction · 0.85
get_dasharrayFunction · 0.85

Tested by

no test coverage detected