@@ -123,14 +123,11 @@ 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
127
# rectangle_legends is used to keep track of which rectangles have already
127
128
# had \addlegendimage added. There should be only one \addlegenimage per
128
129
# bar chart data series.
129
130
data ['rectangle_legends' ] = set ()
130
- #if extra_axis_parameters:
131
- data ['extra axis options [base]' ] = extra_axis_parameters .copy ()
132
- #else:
133
- # data['extra axis options [base]'] = set()
134
131
135
132
if dpi is None :
136
133
savefig_dpi = mpl .rcParams ['savefig.dpi' ]
@@ -263,17 +260,17 @@ def _recurse(data, obj):
263
260
content = _ContentManager ()
264
261
for child in obj .get_children ():
265
262
if isinstance (child , mpl .axes .Axes ):
266
- # Reset 'extra axis options ' for every new Axes environment.
267
- data ['extra axis options ' ] = \
268
- data ['extra axis options [base] ' ].copy ()
263
+ # Reset 'extra axis parameters ' for every new Axes environment.
264
+ # data['extra axis parameters '] = \
265
+ # data['extra axis parameters '].copy()
269
266
270
267
ax = axes .Axes (data , child )
271
268
if not ax .is_colorbar :
272
269
# Run through the child objects, gather the content.
273
270
data , children_content = _recurse (data , child )
274
271
# add extra axis options from children
275
- if data ['extra axis options ' ]:
276
- ax .axis_options .extend (data ['extra axis options ' ])
272
+ if data ['extra axis parameters ' ]:
273
+ ax .axis_options .extend (data ['extra axis parameters ' ])
277
274
# populate content
278
275
content .extend (
279
276
ax .get_begin_code () +
0 commit comments