@@ -105,9 +105,7 @@ def get_tikz_code(
105
105
106
106
:param extra_tikzpicture_parameters: Extra tikzpicture options to be passed
107
107
(as a set) to pgfplots.
108
-
109
- :type extra_tikzpicture_parameters: a set of strings for the pfgplots
110
- tikzpicture.
108
+ :type extra_tikzpicture_parameters: a set of strings for the pfgplots tikzpicture.
111
109
112
110
:param dpi: The resolution in dots per inch of the rendered image in case
113
111
of QuadMesh plots. If ``None`` it will default to the value
@@ -166,7 +164,6 @@ def get_tikz_code(
166
164
data ["font size" ] = textsize
167
165
data ["custom colors" ] = {}
168
166
data ["legend colors" ] = []
169
- data ["extra tikzpicture parameters" ] = extra_tikzpicture_parameters
170
167
data ["add axis environment" ] = add_axis_environment
171
168
data ["show_info" ] = show_info
172
169
# rectangle_legends is used to keep track of which rectangles have already
@@ -210,10 +207,10 @@ def get_tikz_code(
210
207
211
208
# write the contents
212
209
if wrap and add_axis_environment :
213
- code += "\\ begin{tikzpicture}\n \n "
210
+ code += "\\ begin{tikzpicture}"
214
211
if extra_tikzpicture_parameters :
215
- code += ",\n " .join (data [ "extra tikzpicture parameters" ])
216
- code += "\n "
212
+ code += "[ \n " + " ,\n " .join (extra_tikzpicture_parameters ) + " \n ]"
213
+ code += "\n \n "
217
214
218
215
coldefs = _get_color_definitions (data )
219
216
if coldefs :
0 commit comments