Skip to content

Commit

Permalink
Add grid
Browse files Browse the repository at this point in the history
Adding a 3D grid to the example
  • Loading branch information
pv-atmos committed Jun 18, 2014
1 parent e095f7e commit 6fa975e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/example_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def transformTopo(src=GetActiveSource(),moveXFunction=''):
dataDims = ['xt_ocean','yt_ocean','st_ocean']
# the values we will be interested in
dataName = 'o2'
dataContours = [1e-4]
dataContours = [8e-5]

## how would you like the transformation to work ##
logCoord = [] #no logarithmic coordinates
Expand Down Expand Up @@ -121,5 +121,8 @@ def transformTopo(src=GetActiveSource(),moveXFunction=''):
except:
pass

#### finally, add a grid ####
AddGrid(xlevels=[-270,-225,-180,-135,-90,-45,0,45], ylevels=[-60,-30,0,30,60], zlevels=range(-5000,1000,1000), bounds=[-280,80,-90,90,-5500,0], ratios=aspRat, logCoord=logCoord, AxisNames=["longitude","latitude","depth [m]"], AxisColor=[0,0,0], AxisWidth=1.0,LabelSize=5.0)


Render()

0 comments on commit 6fa975e

Please sign in to comment.