source: trunk/UTIL/PYTHON/planetoplot_v2/examples/vertpress.py @ 923

Last change on this file since 923 was 923, checked in by aslmd, 12 years ago

UTIL PYTHON planetoplot_v2

PPCLASS AND PPPLOT

  • added global plot settings in pp() objects
  • self is returned for each method to allow e.g. one-line get + attribution
  • added labeling of 1D plots
  • fine-tuning of plot appearance (e.g. vector key)
  • corrected a problem with plotin (same object can be referred to all along)
  • fixed meanarea for 1D requests

PP.PY

  • no more -f for pp.py (files are simply given as arguments!)
  • added missing options to pp.py
  • nice informative header

PP_RELOAD.PY

  • pp_reload.py can now change colorbars and 1D markers

EXAMPLES

  • general update of examples + few additions
  • added a nice example tide with mixed 2D+1D plots
  • Property svn:executable set to *
File size: 528 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4prof = pp()
5prof.verbose = True
6prof.file = "/home/aymeric/Big_Data/case_night.nc"
7prof.var = "tk"
8prof.t = [10.,20.]
9prof.x = 30
10prof.y = 30
11prof.filename = "vertpress"
12
13prof.get()
14prof.superpose = True
15prof.defineplot()
16prof.p[0].logy = True
17prof.makeplot()
18
19## a small workaround if one wants to change axis names
20## (it is difficult because of swapping axis)
21prof.p[0].swaplab = False
22prof.p[0].xlabel = "Temperature (K)"
23prof.p[0].ylabel = "Pressure (Pa)"
24prof.makeplot()
25
26
27
28
Note: See TracBrowser for help on using the repository browser.