Skip to content

Commit c1333bd

Browse files
authored
Update line2d.py
switched pre and post for the steps
1 parent a2635f3 commit c1333bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tikzplotlib/line2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def draw_line2d(data, obj):
3737
if drawstyle == "steps-mid":
3838
style = "const plot mark mid"
3939
elif drawstyle == "steps-pre" or drawstyle == "steps":
40-
style = "const plot mark left"
41-
elif drawstyle == "steps-post":
4240
style = "const plot mark right"
41+
elif drawstyle == "steps-post":
42+
style = "const plot mark left"
4343
addplot_options.append("{}".format(style))
4444

4545
alpha = obj.get_alpha()

0 commit comments

Comments
 (0)