Skip to content

Commit e5b4798

Browse files
committed
added some in-code explanation of the fix and the bug
1 parent 625722a commit e5b4798

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

matplotlib2tikz/line2d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def draw_line2d(data, obj):
8989

9090
if marker and not show_line:
9191
addplot_options.append('only marks')
92-
92+
93+
# Check if a line is not in a legend and forget it if so,
94+
# fixes bug #167:
9395
if obj.get_label().startswith("_line"):
9496
addplot_options.append("forget plot")
9597

0 commit comments

Comments
 (0)