Skip to content

Commit 11af64e

Browse files
committed
Cleanup
1 parent 6018e7e commit 11af64e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tikzplotlib/_patch.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ def _draw_polygon(data, obj, draw_options):
9595
data, obj.get_path(), draw_options=draw_options
9696
)
9797
legend_type = "area legend" if is_area else "line legend"
98-
legend = _patch_legend(obj, draw_options, legend_type)
99-
content += legend
98+
content += _patch_legend(obj, draw_options, legend_type)
10099

101100
return data, content
102101

@@ -169,8 +168,7 @@ def _draw_ellipse(data, obj, draw_options):
169168
+ ");\n"
170169
).format(",".join(draw_options), x, y, 0.5 * obj.width, 0.5 * obj.height)
171170

172-
legend = _patch_legend(obj, draw_options, "area legend")
173-
content += legend
171+
content += _patch_legend(obj, draw_options, "area legend")
174172

175173
return data, content
176174

@@ -183,6 +181,6 @@ def _draw_circle(data, obj, draw_options):
183181
content = (
184182
"\\draw[{}] (axis cs:" + ff + "," + ff + ") circle (" + ff + ");\n"
185183
).format(",".join(draw_options), x, y, obj.get_radius())
186-
legend = _patch_legend(obj, draw_options, "area legend")
187-
content += legend
184+
content += _patch_legend(obj, draw_options, "area legend")
185+
188186
return data, content

0 commit comments

Comments
 (0)