Changeset 372 for trunk/UTIL
- Timestamp:
- Nov 10, 2011, 10:51:06 AM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/gcm.py
r369 r372 61 61 parser.add_option('--ymin', action='store',dest='ymin', type="float", default=None, help='Minimum value for the y-axis in contour-plots Default is min(yaxis)') 62 62 parser.add_option('--inverty', action='store_true',dest='inverty', default=False, help='Force matplotlib.pyplot to revert the y-axis. Can be of use when plotting data along pressure levels. (pyplot naturally tend to plot the z-axis with increasing values)') 63 63 parser.add_option('--logy', action='store_true',dest='logy', default=False, help='Set y-axis to logarithmic.') 64 64 65 65 ############# T.N. changes … … 222 222 outputname=opt.output,resolution=opt.res,\ 223 223 ope=opt.operation,fileref=reffile,minop=opt.vminope,maxop=opt.vmaxope,titleref=opt.titref,\ 224 invert_y=opt.inverty,xaxis=zexaxis,yaxis=zeyaxis )224 invert_y=opt.inverty,xaxis=zexaxis,yaxis=zeyaxis,ylog=opt.logy) 225 225 print 'Done: '+name 226 226 system("rm -f to_be_erased") -
trunk/UTIL/PYTHON/meso.py
r369 r372 50 50 parser.add_option('--xmin', action='store',dest='xmin', type="float", default=None, help='Minimum value for the y-axis in contour-plots. Default is min(xaxis).') 51 51 parser.add_option('--ymin', action='store',dest='ymin', type="float", default=None, help='Minimum value for the y-axis in contour-plots Default is min(yaxis)') 52 parser.add_option('--logy', action='store_true',dest='logy', default=False, help='Set y-axis to logarithmic.') 52 53 #parser.add_option('-V', action='store', dest='comb', type="float", default=None, help='a defined combination of variables') 53 54 … … 168 169 slon=zeslon,slat=zeslat,svert=zesvert,stime=zestime,\ 169 170 outputname=opt.output,resolution=opt.res,\ 170 invert_y=opt.inverty,xaxis=zexaxis,yaxis=zeyaxis )171 invert_y=opt.inverty,xaxis=zexaxis,yaxis=zeyaxis,ylog=opt.logy) 171 172 print 'Done: '+name 172 173 system("rm -f to_be_erased") -
trunk/UTIL/PYTHON/planetoplot.py
r369 r372 47 47 invert_y=False,\ 48 48 xaxis=[None,None],\ 49 yaxis=[None,None]): 49 yaxis=[None,None],\ 50 ylog=False): 50 51 51 52 … … 330 331 lima,limb = mpl.pyplot.ylim() 331 332 mpl.pyplot.ylim(limb,lima) 333 if ylog: 334 mpl.pyplot.semilogy() 332 335 333 336 else:
Note: See TracChangeset
for help on using the changeset viewer.