Skip to content

Commit bd65853

Browse files
committed
included comment
1 parent 9facdf7 commit bd65853

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tikzplotlib/line2d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ def draw_line2d(data, obj):
3333

3434
# get draw style
3535
drawstyle = obj.get_drawstyle()
36-
if drawstyle is not (None or "default"):
36+
if drawstyle in [None, "default"]:
37+
pass
38+
else:
3739
if drawstyle == "steps-mid":
3840
style = "const plot mark mid"
39-
elif drawstyle == "steps-pre" or drawstyle == "steps":
41+
elif drawstyle in ["steps-pre", "steps"]:
4042
style = "const plot mark right"
4143
elif drawstyle == "steps-post":
4244
style = "const plot mark left"

0 commit comments

Comments
 (0)