Last change
on this file since 1192 was
1029,
checked in by aslmd, 11 years ago
|
UTIL PYTHON planetoplot_v2
- added keywords nxticks nyticks xp yp missing for improved plot settings
- added function to print contents of pp object
- added to ppplot a function figureref to easily set a figure of given size
- bug fix affecting .ppobj objects containing fields with missing values
- bug fix when size of z coordinate do not match field
- bug fix for Ls time coordinates (added changetime=correctls)
- bug fix if not connected to internet
- tidying up examples
|
-
Property svn:executable set to
*
|
File size:
615 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | from ppclass import pp |
---|
3 | |
---|
4 | prof = pp() |
---|
5 | prof.verbose = True |
---|
6 | #prof.file = "/home/aymeric/Big_Data/case_night.nc" |
---|
7 | prof.file = "/home/aymeric/Big_Data/GALE/wrfout_d03_2024-06-09_00:00:00_z" |
---|
8 | prof.var = "tk" |
---|
9 | prof.t = [10.,20.] |
---|
10 | prof.x = -5. #30 |
---|
11 | prof.y = 138. #30 |
---|
12 | prof.filename = "vertpress" |
---|
13 | |
---|
14 | prof.get() |
---|
15 | prof.superpose = True |
---|
16 | prof.defineplot() |
---|
17 | prof.p[0].logy = True |
---|
18 | prof.makeplot() |
---|
19 | |
---|
20 | ## a small workaround if one wants to change axis names |
---|
21 | ## (it is difficult because of swapping axis) |
---|
22 | prof.p[0].swaplab = False |
---|
23 | prof.p[0].xlabel = "Temperature (K)" |
---|
24 | prof.p[0].ylabel = "Pressure (Pa)" |
---|
25 | prof.makeplot() |
---|
26 | |
---|
27 | |
---|
28 | |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.