source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/vector.py @ 1219

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

planetoplot_v2. added trans back showcb attributes to ppclass. simplified example scripts. added the web home page example.

  • Property svn:executable set to *
File size: 576 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4u = pp()
5u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
6u.var = ["temp","phisinit","u","v"]
7u.vargoal = ["main","contour","vector","vector"]
8u.t = "0.5,0.8"
9u.z = "50000"
10u.filename = "vector"
11
12# stride both x and y
13# this impacts field + vector
14u.sx = 3
15u.sy = 3
16u.getplot()
17u.sx = 1 # (reinitialise)
18u.sy = 1 # (reinitialise)
19
20# stride vectors only
21# not field (here topography)
22u.sx = 3
23u.sy = 3
24u.getplot()
25
26u.z = "50"
27u.filename = "myplot"
28u.getplot()
29
30u.colorbar = "jet"
31u.trans = 0.0
32u.back = "vis"
33
34u.makeplot()
Note: See TracBrowser for help on using the repository browser.