Skip to content

Commit f279506

Browse files
authored
Merge pull request #148 from nschloe/extras-fix
Extras fix
2 parents 9b39ef8 + 47b15a7 commit f279506

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: no

matplotlib2tikz/__about__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22
#
3-
__author__ = 'Nico Schlömer'
3+
__author__ = u'Nico Schlömer'
44
__email__ = '[email protected]'
55
__copyright__ = 'Copyright (c) 2010-2017, %s <%s>' % (__author__, __email__)
66
__credits__ = []
7-
__license__ = 'MIT License'
8-
__version__ = '0.6.2'
9-
__maintainer__ = 'Nico Schlömer'
10-
__status__ = 'Production'
7+
__license__ = 'License :: OSI Approved :: MIT License'
8+
__version__ = '0.6.3'
9+
__maintainer__ = u'Nico Schlömer'
10+
__status__ = 'Development Status :: 5 - Production/Stable'

matplotlib2tikz/save.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ def save(filepath,
115115
data['font size'] = textsize
116116
data['custom colors'] = {}
117117
# 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
119119
# bar chart data series.
120120
data['rectangle_legends'] = set()
121121
if extra:
122-
data['extra axis options'] = extra.copy()
122+
data['extra axis options [base]'] = extra.copy()
123123
else:
124-
data['extra axis options'] = set()
124+
data['extra axis options [base]'] = set()
125125

126126
if dpi is None:
127127
savefig_dpi = mpl.rcParams['savefig.dpi']
@@ -216,7 +216,7 @@ def _print_pgfplot_libs_message(data):
216216
return
217217

218218
class _ContentManager(object):
219-
""" Basic Content Manager for matplotlib2tikz
219+
""" Basic Content Manager for matplotlib2tikz
220220
221221
This manager uses a dictionary to map z-order to an array of content
222222
to be drawn at the z-order.
@@ -247,7 +247,8 @@ def _recurse(data, obj):
247247
for child in obj.get_children():
248248
if isinstance(child, mpl.axes.Axes):
249249
# 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()
251252

252253
ax = axes.Axes(data, child)
253254
if not ax.is_colorbar:
@@ -258,7 +259,7 @@ def _recurse(data, obj):
258259
ax.axis_options.extend(data['extra axis options'])
259260
# populate content
260261
content.extend(
261-
ax.get_begin_code() +
262+
ax.get_begin_code() +
262263
children_content +
263264
[ax.get_end_code(data)], 0)
264265
elif isinstance(child, mpl.lines.Line2D):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def read(fname):
4040
long_description=read('README.rst'),
4141
license=about['__license__'],
4242
classifiers=[
43-
'Development Status :: 5 - Production/Stable',
44-
'License :: OSI Approved :: MIT License',
43+
about['__status__'],
44+
about['__license__'],
4545
'Operating System :: OS Independent',
4646
'Programming Language :: Python',
4747
'Programming Language :: Python :: 2',

test/show

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
#
44
import argparse
5-
from matplotlib import pyplot as pp
5+
from matplotlib import pyplot as plt
66
from importlib import import_module
77

88
import testfunctions
@@ -16,7 +16,7 @@ def _main():
1616
test = import_module('testfunctions.' + test_name)
1717

1818
test.plot()
19-
pp.show()
19+
plt.show()
2020
return
2121

2222

0 commit comments

Comments
 (0)