Changeset 1050 for trunk/UTIL/PYTHON/planetoplot_v2/examples
- Timestamp:
- Sep 26, 2013, 12:35:03 PM (11 years ago)
- Location:
- trunk/UTIL/PYTHON/planetoplot_v2/examples
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/examples/additional/just_color_and_title.py
r1029 r1050 5 5 anewversion.defineplot(loadfile="../../demo_data/gw.ppobj") 6 6 for plot in anewversion.p: 7 plot.colorb = "Paired"7 plot.colorbar = "Paired" 8 8 plot.title = "Psychedelic plot!" 9 9 anewversion.makeplot() -
trunk/UTIL/PYTHON/planetoplot_v2/examples/additional/tes.py
r1029 r1050 12 12 tes.superpose = True 13 13 tes.getdefineplot() 14 tes.p[0].l abel= "MY24"15 tes.p[1].l abel= "MY25"16 tes.p[2].l abel= "MY26"14 tes.p[0].legend = "MY24" 15 tes.p[1].legend = "MY25" 16 tes.p[2].legend = "MY26" 17 17 tes.makeplot() -
trunk/UTIL/PYTHON/planetoplot_v2/examples/additional/vertpress1d.py
r1029 r1050 26 26 temp.filename = name 27 27 temp.includedate = False 28 temp.colorb = "hot"28 temp.colorbar = "hot" 29 29 30 30 # this is doing defineplot amongst other things … … 43 43 yeah.xmin = 70. 44 44 yeah.div = 32 45 yeah.l abel= labs[count]45 yeah.legend = labs[count] 46 46 yeah.title = "Equilibrium profile with a 1D globally-averaged model after 50 Saturn years" 47 47 count = count+1 -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/aire.py
r1029 r1050 11 11 tpond.compute = "meanarea" 12 12 tpond.superpose = True 13 tpond.l abel= "mean with ponderation by mesh area"13 tpond.legend = "mean with ponderation by mesh area" 14 14 tpond.getplot(extraplot=1) 15 15 … … 18 18 tnormal.compute = "mean" 19 19 tnormal.plotin = tpond 20 tnormal.l abel= "simple mean (kind of wrong)"20 tnormal.legend = "simple mean (kind of wrong)" 21 21 tnormal.filename = "aire" 22 22 tnormal.getplot() -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/function.py
r1029 r1050 22 22 23 23 S.p[0].marker = 'o' 24 S.p[0].l style = ''24 S.p[0].linestyle = '' 25 25 S.p[0].ylabel = "Surface geopotential height (km)" 26 26 S.p[0].ycoeff = 1./1000. -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/gw.py
r1029 r1050 32 32 plot.div = 30 33 33 plot.nxticks = 5 34 gw.p[0].colorb = "RdBu_r"34 gw.p[0].colorbar = "RdBu_r" 35 35 gw.p[0].vmin = -1. 36 36 gw.p[0].vmax = 1. -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/gw_v2.py
r1029 r1050 15 15 # we define global settings for plot 16 16 # (must be done before defineplot) 17 gw.colorb = "RdBu_r"17 gw.colorbar = "RdBu_r" 18 18 gw.vmin = -1. ; gw.vmax = 1. 19 19 gw.div = 30 -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/meso_profile.py
r1029 r1050 17 17 m.verbose = True # making the programe verbose 18 18 #m.out = "pdf" # output format 19 m.colorb = "spectral" # color cycle according to a color map19 m.colorbar = "spectral" # color cycle according to a color map 20 20 21 21 # get data and make plot with default settings … … 43 43 # change a few plot settings 44 44 for curve in S.p: 45 curve.l style = "--"45 curve.linestyle = "--" 46 46 curve.marker = "" 47 47 S.p[0].swaplab = False -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/scatter.py
r1029 r1050 16 16 17 17 S = ps.func(tsurf) 18 S.p[0].l style=""18 S.p[0].linestyle="" 19 19 S.p[0].marker="h" 20 20 S.p[0].color="g" … … 27 27 28 28 S2 = icetot.func(tsurf) 29 S2.p[0].l style=""29 S2.p[0].linestyle="" 30 30 S2.p[0].marker="D" 31 31 S2.p[0].color="r" … … 46 46 wind = wind**0.5 47 47 S3 = wind.func(ps) 48 S3.p[0].l style=""48 S3.p[0].linestyle="" 49 49 S3.p[0].marker="o" 50 50 S3.p[0].color="k" … … 71 71 72 72 S = ps.func(tsurf) 73 S.p[0].l style=""73 S.p[0].linestyle="" 74 74 S.p[0].marker="h" 75 75 S.p[0].color="g" -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/simple.py
r1029 r1050 28 28 # we simply change the colorbar 29 29 # ... no need to reload data 30 u.p[0].colorb = "RdBu"30 u.p[0].colorbar = "RdBu" 31 31 u.filename = "myplot" 32 32 u.makeplot() -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/tide.py
r1029 r1050 22 22 addplot.title = "Tide signal at the equator" 23 23 addplot.ylabel = "$p_s$ diurnal anomaly (Pa)" 24 addplot.l style = ""24 addplot.linestyle = "" 25 25 addplot.marker = "." 26 26 addplot.plot() -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/vector.py
r1029 r1050 12 12 # stride both x and y 13 13 # this impacts field + vector 14 u.s tridex = 315 u.s tridey = 314 u.sx = 3 15 u.sy = 3 16 16 u.getplot() 17 u.s tridex = 1 # (reinitialise)18 u.s tridey = 1 # (reinitialise)17 u.sx = 1 # (reinitialise) 18 u.sy = 1 # (reinitialise) 19 19 20 20 # stride vectors only 21 21 # not field (here topography) 22 u.s tridevecx = 323 u.s tridevecy = 322 u.sx = 3 23 u.sy = 3 24 24 u.getplot() 25 25 … … 31 31 32 32 33 u.p[0].colorb = "jet"33 u.p[0].colorbar = "jet" 34 34 u.p[0].trans = 0.0 35 35 u.p[0].back = "vis" -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/windspeed.py
r1029 r1050 27 27 wind.filename = "windspeed" 28 28 wind.defineplot() 29 wind.p[2].proj = "ortho" 29 30 wind.p[2].title = "$\sqrt{u^2+v^2}$" 30 wind.p[2].proj = "ortho"31 31 wind.makeplot() # plot within the previous one (show because complete) 32 32 -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/zonalcontour.py
r1029 r1050 12 12 u.defineplot() 13 13 u.p[0].div = 30. 14 u.p[0].colorb = "spectral"14 u.p[0].colorbar = "spectral" 15 15 u.makeplot() 16 16 -
trunk/UTIL/PYTHON/planetoplot_v2/examples/reference/zonalmean.py
r1029 r1050 25 25 u.defineplot() 26 26 u.p[0].div = 30. 27 u.p[0].colorb = "RdBu_r"27 u.p[0].colorbar = "RdBu_r" 28 28 u.p[0].title = "This is a zonal mean" 29 29 u.makeplot() … … 35 35 u.defineplot() 36 36 u.p[0].div = 30. 37 u.p[0].colorb = "cool"37 u.p[0].colorbar = "cool" 38 38 u.p[0].title = "This is minimum over zonal axis" 39 39 u.makeplot() … … 45 45 u.defineplot() 46 46 u.p[0].div = 30. 47 u.p[0].colorb = "hot"47 u.p[0].colorbar = "hot" 48 48 u.p[0].title = "This is maximum over zonal axis" 49 49 u.makeplot()
Note: See TracChangeset
for help on using the changeset viewer.