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

Skip to content

Commit fe5877a

Browse files
committed
Other part of symlog bugfix (and deactivating an experimental type1font that slipped in by accident)
svn path=/trunk/matplotlib/; revision=6506
1 parent 498668e commit fe5877a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/matplotlib/scale.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ def __init__(self, base, linthresh):
329329
self._linadjust = linthresh / (np.log(linthresh) / self._log_base)
330330

331331
def transform(self, a):
332+
a = np.asarray(a)
332333
return np.where(a <= self._log_linthresh,
333334
np.where(a >= -self._log_linthresh,
334335
a * self._linadjust,

lib/matplotlib/type1font.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, filename):
2929
finally:
3030
file.close()
3131
self.parts = self._split(data)
32-
self._parse()
32+
#self._parse()
3333

3434
def _read(self, file):
3535
rawdata = file.read()
@@ -180,5 +180,5 @@ def tokens(text):
180180
font = Type1Font(sys.argv[1])
181181
parts = font.parts
182182
print len(parts[0]), len(parts[1]), len(parts[2])
183-
print parts[0][font.enc_starts:font.enc_ends]
183+
#print parts[0][font.enc_starts:font.enc_ends]
184184

0 commit comments

Comments
 (0)