Changeset 1926
- Timestamp:
- 09/14/10 15:26:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r1870 r1926 669 669 for tick in self.subplots[i]['axes'].xaxis.majorTicks: 670 670 tick.label1On = False 671 self.subplots[i]['axes'].xaxis.label.set_visible(False)671 #self.subplots[i]['axes'].xaxis.label.set_visible(False) 672 672 if i%cols: 673 673 # Suppress y-labels for frames not in the left column. 674 674 for tick in self.subplots[i]['axes'].yaxis.majorTicks: 675 675 tick.label1On = False 676 self.subplots[i]['axes'].yaxis.label.set_visible(False)676 #self.subplots[i]['axes'].yaxis.label.set_visible(False) 677 677 # disable the first tick of [1:ncol-1] of the last row 678 678 #if i+1 < nplots: 679 679 # self.subplots[i]['axes'].xaxis.majorTicks[0].label1On = False 680 self.rows = rows 681 self.cols = cols 680 # set axes label state for interior subplots. 681 if i%cols: 682 self.subplots[i]['axes'].yaxis.label.set_visible(False) 683 if (i <= (rows-1)*cols - 1) and (i+cols < nplots): 684 self.subplots[i]['axes'].xaxis.label.set_visible(False) 685 self.rows = rows 686 self.cols = cols 682 687 self.subplot(0) 683 688 del rows,cols,n,nplots,layout,ganged,i 689 684 690 685 691 def tidy(self): … … 694 700 if i != 0: 695 701 ax.yaxis.majorTicks[-1].label1On = False 696 702 ## set axes label state for interior subplots. 703 #innerax=False 704 #if i%self.cols: 705 # ax.yaxis.label.set_visible(innerax) 706 #if (i <= (self.rows-1)*self.cols - 1) and (i+self.cols < nplots): 707 # ax.xaxis.label.set_visible(innerax) 708 697 709 698 710 def set_title(self, title=None):
Note:
See TracChangeset
for help on using the changeset viewer.