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 |
---|
2 | from ppclass import pp |
---|
3 | |
---|
4 | gw = pp() |
---|
5 | gw.file = "/home/aymeric/Big_Data/GALE/wrfout_d03_2024-06-09_00:00:00_z" |
---|
6 | gw.var = ["W","tk"] |
---|
7 | gw.vargoal = ["main","contour"] |
---|
8 | |
---|
9 | gw.x = None |
---|
10 | gw.y = -5. |
---|
11 | gw.z = None |
---|
12 | gw.t = 5. |
---|
13 | gw.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 | |
---|
25 | gw.vargoal = ["main","main"] |
---|
26 | gw.out = "png" |
---|
27 | gw.getdefineplot() |
---|
28 | for 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 |
---|
34 | gw.p[0].colorbar = "RdBu_r" |
---|
35 | gw.p[0].vmin = -1. |
---|
36 | gw.p[0].vmax = 1. |
---|
37 | gw.makeplot() |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.