Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e53be3

Browse files
authored
Merge pull request #8608 from rneatherway/bugfixes
FIX: a number of minor local bugs
2 parents 4ef3799 + c491348 commit 1e53be3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def DEBUG_MSG(string, lvl=3, o=None):
6969

7070
def debug_on_error(type, value, tb):
7171
"""Code due to Thomas Heller - published in Python Cookbook (O'Reilley)"""
72-
traceback.print_exc(type, value, tb)
72+
traceback.print_exception(type, value, tb)
7373
print()
7474
pdb.pm() # jdh uncomment
7575

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ def score_size(self, size1, size2):
12341234
try:
12351235
sizeval1 = float(size1)
12361236
except ValueError:
1237-
sizeval1 = self.default_size * font_scalings(size1)
1237+
sizeval1 = self.default_size * font_scalings[size1]
12381238
try:
12391239
sizeval2 = float(size2)
12401240
except ValueError:

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def __init__(self):
200200
else:
201201
mpl.verbose.report('No LaTeX-compatible font found for the '
202202
'%s font family in rcParams. Using '
203-
'default.' % ff, 'helpful')
203+
'default.' % font_family, 'helpful')
204204
setattr(self, font_family_attr, self.font_info[font_family])
205205
fontconfig.append(getattr(self, font_family_attr)[0])
206206
# Add a hash of the latex preamble to self._fontconfig so that the

0 commit comments

Comments
 (0)