[pyngl-talk] Tickmarks in map plots
mclaus at geomar.de
Fri Feb 20 04:09:42 MST 2015
I would like to adjust Tickmarks in a plot produced by a call to
contour_map to match the grid lines drawn on the map.
In NCL I would use gsnMajorLatSpacing, unfortunately this is not
implemented in PyNgl. Is there any way to manipulate the Tickmarks in a
map plot, since tickmark/gridline mismatch is particularly annoying in
Here is a small script to illustrate the problem:
import numpy as np
sst = np.random.randn(10, 10)
wks_type = "pdf"
wks = Ngl.open_wks(wks_type,"test")
res = Ngl.Resources()
res.mpGridLatSpacingF = 20.
map = Ngl.contour_map(wks,sst,res)
PyNGL version: 1.4.0
More information about the pyngl-talk