@@ -123,7 +123,7 @@ def get_tikz_code(
123
123
data ['font size' ] = textsize
124
124
data ['custom colors' ] = {}
125
125
data ['extra tikzpicture parameters' ] = extra_tikzpicture_parameters
126
- data ['extra axis parameters ' ] = extra_axis_parameters
126
+ data ['extra axis options [base] ' ] = extra_axis_parameters . copy ()
127
127
# rectangle_legends is used to keep track of which rectangles have already
128
128
# had \addlegendimage added. There should be only one \addlegenimage per
129
129
# bar chart data series.
@@ -261,16 +261,16 @@ def _recurse(data, obj):
261
261
for child in obj .get_children ():
262
262
if isinstance (child , mpl .axes .Axes ):
263
263
# Reset 'extra axis parameters' for every new Axes environment.
264
- # data['extra axis parameters '] = \
265
- # data['extra axis parameters '].copy()
264
+ data ['extra axis options ' ] = \
265
+ data ['extra axis options [base] ' ].copy ()
266
266
267
267
ax = axes .Axes (data , child )
268
268
if not ax .is_colorbar :
269
269
# Run through the child objects, gather the content.
270
270
data , children_content = _recurse (data , child )
271
271
# add extra axis options from children
272
- if data ['extra axis parameters ' ]:
273
- ax .axis_options .extend (data ['extra axis parameters ' ])
272
+ if data ['extra axis options ' ]:
273
+ ax .axis_options .extend (data ['extra axis options ' ])
274
274
# populate content
275
275
content .extend (
276
276
ax .get_begin_code () +
0 commit comments