Skip to content

Commit 48e1fdb

Browse files
committed
seperated parameter extra in extra_axis_opt and extra_picture_opt
1 parent 8f45516 commit 48e1fdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

matplotlib2tikz/save.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ def get_tikz_code(
162162
# write the contents
163163
if wrap:
164164
code += '\\begin{tikzpicture}\n\n'
165-
for options in data['extra picture options']:
166-
code += options + ',\n'
165+
if extra_picture_opt:
166+
for options in data['extra picture options']:
167+
code += options + ',\n'
167168

168169

169170
coldefs = _get_color_definitions(data)

0 commit comments

Comments
 (0)