Add a colorbar to a plot.
Parameters: |
|
---|
Example:
f = addfile('D:/Temp/GrADS/model.ctl')
psv = f['PS']
ps = psv[0,[10,60],[60,140]]
axesm()
mlayer = shaperead('D:/Temp/map/country1.shp')
geoshow(mlayer, edgecolor=(0,0,255))
#layer = contourm(ps, 20)
layer = contourfm(ps, 20)
title('Pressure')
yticks(arange(20, 61, 20))
grid()
colorbar(layer, orientation='horizontal', extendrect=False, shrink=0.8, aspect=12)