Changeset 1723 for branches/alma/python/asaplotbase.py
- Timestamp:
- 04/20/10 18:38:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asaplotbase.py
r1717 r1723 570 570 571 571 572 def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, ganged=True): 572 #def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, ganged=True): 573 def set_panels(self, rows=1, cols=0, n=-1, nplots=-1, layout=None,ganged=True): 573 574 """ 574 575 Set the panel layout. … … 593 594 self.set_title() 594 595 596 if layout: 597 lef, bot, rig, top, wsp, hsp = layout 598 self.figure.subplots_adjust( 599 left=lef,bottom=bot,right=rig,top=top,wspace=wsp,hspace=hsp) 600 del lef,bot,rig,top,wsp,hsp 601 595 602 if rows < 1: rows = 1 596 603 … … 605 612 if 0 <= n < rows*cols: 606 613 i = len(self.subplots) 614 607 615 self.subplots.append({}) 608 616 … … 666 674 self.cols = cols 667 675 self.subplot(0) 676 del rows,cols,n,nplots,layout,ganged,i 668 677 669 678 def tidy(self):
Note: See TracChangeset
for help on using the changeset viewer.