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 9facdf7 commit bd65853Copy full SHA for bd65853
tikzplotlib/line2d.py
@@ -33,10 +33,12 @@ def draw_line2d(data, obj):
33
34
# get draw style
35
drawstyle = obj.get_drawstyle()
36
- if drawstyle is not (None or "default"):
+ if drawstyle in [None, "default"]:
37
+ pass
38
+ else:
39
if drawstyle == "steps-mid":
40
style = "const plot mark mid"
- elif drawstyle == "steps-pre" or drawstyle == "steps":
41
+ elif drawstyle in ["steps-pre", "steps"]:
42
style = "const plot mark right"
43
elif drawstyle == "steps-post":
44
style = "const plot mark left"
0 commit comments