[pyngl-talk] Tickmarks in map plots

Martin Claus mclaus at geomar.de
Fri Feb 20 04:09:42 MST 2015


Hi,

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 
orthographic plots.

Here is a small script to illustrate the problem:


import numpy as np

import Ngl

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)

Ngl.end()



PyNGL version: 1.4.0

Best regards,
Martin


More information about the pyngl-talk mailing list