source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/gw.py @ 1052

Last change on this file since 1052 was 1050, checked in by aslmd, 11 years ago

UTIL PYTHON planetoplot_v2

RENAMED VARIABLES TO BE SIMPLER or COMPLIANT WITH MATPLOTLIB

colorb >> colorbar
lstyle >> linestyle
label >> legend

stridevecx >> svx
stridevecy >> svy
stridex >> sx
stridey >> sy
stridez >> sz
stridet >> st

(in ppplot only)
field >> f
absc >> x
ordi >> y
addvecx >> vx
addvecy >> vy
addontour >> c

ALSO added (same reason of compatibility)

  • the possibility to call ppplot.show() as in matplotlib
  • a shortcut method for a ppplot object: the so-called .makeshow()
  • Property svn:executable set to *
File size: 813 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4gw = pp()
5gw.file = "/home/aymeric/Big_Data/GALE/wrfout_d03_2024-06-09_00:00:00_z"
6gw.var = ["W","tk"]
7gw.vargoal = ["main","contour"]
8
9gw.x = None
10gw.y = -5.
11gw.z = None
12gw.t = 5.
13gw.verbose = True
14
15#gw.getdefineplot()
16#gw.p[0].colorb = "RdBu_r"
17#gw.p[0].vmin = -1.
18#gw.p[0].vmax = 1.
19#gw.p[0].div = 30
20#gw.p[0].xlabel = "East longitude (deg)"
21#gw.p[0].ycoeff = 1./1000.
22#gw.p[0].ylabel = "Altitude above MOLA reference (km)"
23#gw.makeplot()
24
25gw.vargoal = ["main","main"]
26gw.out = "png"
27gw.getdefineplot()
28for plot in gw.p:
29    plot.xlabel = "East longitude (deg)"
30    plot.ycoeff = 1./1000.
31    plot.ylabel = "Altitude above MOLA reference (km)"
32    plot.div = 30
33    plot.nxticks = 5
34gw.p[0].colorbar = "RdBu_r"
35gw.p[0].vmin = -1.
36gw.p[0].vmax = 1.
37gw.makeplot()
38
Note: See TracBrowser for help on using the repository browser.