Changeset 977 for trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
- Timestamp:
- Jun 4, 2013, 4:41:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r972 r977 784 784 if self.title is not None: plobj.title = self.title 785 785 if self.units is not None: plobj.units = self.units 786 if self.colorb is not None: plobj.colorb = self.colorb 786 787 # -- 1D specific 787 788 if dp == 1: … … 795 796 if self.vmin is not None: plobj.vmin = self.vmin 796 797 if self.vmax is not None: plobj.vmax = self.vmax 797 if self.colorb is not None: plobj.colorb = self.colorb798 798 # finally append plot object 799 799 self.p.append(plobj) … … 909 909 self.fig.add_subplot(1,1,1,axisbg=pl.axisbg) # define one subplot (still needed for user-defined font sizes) 910 910 sav = pl.xlabel,pl.ylabel,pl.xcoeff,pl.ycoeff,pl.title,pl.swaplab # save titles and labels 911 # possibility to color lines according to a color map 912 # ... made so that all plots span the whole color map automatically. 913 if self.colorb is not None: 914 if self.verbose: print "**** OK. We make a rainbow spaghetti plot with color map ",self.colorb 915 ppplot.rainbow(cb=self.colorb,num=self.howmanyplots) 911 916 else: 912 917 pl.invert = False ; pl.lstyle = None # don't invert again axis … … 932 937 # once completed show the plot (cannot show intermediate plotin) 933 938 # ... added a fix (customplot=True) for the label problem in basemap 934 print "**** PPCLASS. Done step: makeplot"939 if not self.quiet: print "**** PPCLASS. Done step: makeplot" 935 940 if (self.n == self.howmanyplots): 936 941 ppplot.save(mode=self.out,filename=self.filename,folder=self.folder,custom=self.customplot,includedate=self.includedate,res=self.res) … … 1133 1138 except: 1134 1139 try: self.p[iii].wscale = opt.wscale[0] 1140 except: pass 1141 ### 1142 try: self.p[iii].xmin = opt.xmin[iii] 1143 except: 1144 try: self.p[iii].xmin = opt.xmin[0] 1145 except: pass 1146 ### 1147 try: self.p[iii].ymin = opt.ymin[iii] 1148 except: 1149 try: self.p[iii].ymin = opt.ymin[0] 1150 except: pass 1151 ### 1152 try: self.p[iii].xmax = opt.xmax[iii] 1153 except: 1154 try: self.p[iii].xmax = opt.xmax[0] 1155 except: pass 1156 ### 1157 try: self.p[iii].ymax = opt.ymax[iii] 1158 except: 1159 try: self.p[iii].ymax = opt.ymax[0] 1135 1160 except: pass 1136 1161
Note: See TracChangeset
for help on using the changeset viewer.