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

Function get_path_style

plotly/matplotlylib/mplexporter/utils.py:130–144  ·  view source on GitHub ↗

Get the style dictionary for matplotlib path objects

(path, fill=True)

Source from the content-addressed store, hash-verified

128
129
130def 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
147def get_line_style(line):

Callers

nothing calls this directly

Calls 2

export_colorFunction · 0.85
get_dasharrayFunction · 0.85

Tested by

no test coverage detected