@@ -115,13 +115,13 @@ def save(filepath,
115
115
data ['font size' ] = textsize
116
116
data ['custom colors' ] = {}
117
117
# rectangle_legends is used to keep track of which rectangles have already
118
- # had \addlegendimage added. There should be only one \addlegenimage per
118
+ # had \addlegendimage added. There should be only one \addlegenimage per
119
119
# bar chart data series.
120
120
data ['rectangle_legends' ] = set ()
121
121
if extra :
122
- data ['extra axis options' ] = extra .copy ()
122
+ data ['extra axis options [base] ' ] = extra .copy ()
123
123
else :
124
- data ['extra axis options' ] = set ()
124
+ data ['extra axis options [base] ' ] = set ()
125
125
126
126
if dpi is None :
127
127
savefig_dpi = mpl .rcParams ['savefig.dpi' ]
@@ -216,7 +216,7 @@ def _print_pgfplot_libs_message(data):
216
216
return
217
217
218
218
class _ContentManager (object ):
219
- """ Basic Content Manager for matplotlib2tikz
219
+ """ Basic Content Manager for matplotlib2tikz
220
220
221
221
This manager uses a dictionary to map z-order to an array of content
222
222
to be drawn at the z-order.
@@ -247,7 +247,8 @@ def _recurse(data, obj):
247
247
for child in obj .get_children ():
248
248
if isinstance (child , mpl .axes .Axes ):
249
249
# Reset 'extra axis options' for every new Axes environment.
250
- data ['extra axis options' ] = set ()
250
+ data ['extra axis options' ] = \
251
+ data ['extra axis options [base]' ].copy ()
251
252
252
253
ax = axes .Axes (data , child )
253
254
if not ax .is_colorbar :
@@ -258,7 +259,7 @@ def _recurse(data, obj):
258
259
ax .axis_options .extend (data ['extra axis options' ])
259
260
# populate content
260
261
content .extend (
261
- ax .get_begin_code () +
262
+ ax .get_begin_code () +
262
263
children_content +
263
264
[ax .get_end_code (data )], 0 )
264
265
elif isinstance (child , mpl .lines .Line2D ):
0 commit comments