Changeset 1240
- Timestamp:
- 09/05/06 19:53:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Release2.1.0b/python/asaplotbase.py
r1153 r1240 13 13 from matplotlib import rc, rcParams 14 14 from asap import rcParams as asaprcParams 15 from matplotlib.ticker import ScalarFormatter15 from matplotlib.ticker import OldScalarFormatter 16 16 from matplotlib.ticker import NullLocator 17 17 from matplotlib.transforms import blend_xy_sep_transform … … 20 20 print "Warning: matplotlib version < 0.87. This might cause errors. Please upgrade." 21 21 22 class MyFormatter(ScalarFormatter):23 def __call__(self, x, pos=None):24 #last = len(self.locs)-225 if pos==0:26 return ''27 else: returnScalarFormatter.__call__(self, x, pos)22 #class MyFormatter(OldScalarFormatter): 23 # def __call__(self, x, pos=None): 24 # last = len(self.locs)-2 25 # if pos==0: 26 # return '' 27 # else: return OldScalarFormatter.__call__(self, x, pos) 28 28 29 29 class asaplotbase: … … 615 615 self.subplots[i]['axes'] = self.figure.add_subplot(rows, 616 616 cols, i+1) 617 self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter()) 617 618 else: 618 619 if i == 0: 619 620 self.subplots[i]['axes'] = self.figure.add_subplot(rows, 620 621 cols, i+1) 622 self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter()) 621 623 else: 622 624 self.subplots[i]['axes'] = self.figure.add_subplot(rows, … … 624 626 sharex=self.subplots[0]['axes'], 625 627 sharey=self.subplots[0]['axes']) 628 626 629 # Suppress tick labelling for interior subplots. 627 630 if i <= (rows-1)*cols - 1:
Note:
See TracChangeset
for help on using the changeset viewer.