We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33027dc commit a2635f3Copy full SHA for a2635f3
tikzplotlib/line2d.py
@@ -31,6 +31,17 @@ def draw_line2d(data, obj):
31
data, line_xcolor, _ = mycol.mpl_color2xcolor(data, color)
32
addplot_options.append(line_xcolor)
33
34
+ # get draw style
35
+ drawstyle = obj.get_drawstyle()
36
+ if drawstyle is not (None or "default"):
37
+ if drawstyle == "steps-mid":
38
+ style = "const plot mark mid"
39
+ elif drawstyle == "steps-pre" or drawstyle == "steps":
40
+ style = "const plot mark left"
41
+ elif drawstyle == "steps-post":
42
+ style = "const plot mark right"
43
+ addplot_options.append("{}".format(style))
44
+
45
alpha = obj.get_alpha()
46
if alpha is not None:
47
addplot_options.append("opacity={}".format(alpha))
0 commit comments