<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Martin,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Unfortunately map tickmarks and grid lines are not as customizable as they are with XY, contour, and vector plots. We have it on our list to clean up the map tickmarks, but just haven't had time to get to it yet.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I created an example that shows how you can use the "blank_plot" function to create the map tickmark labels you want, and then add_polyline to create the lat/lon grid lines you want. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This example will only work with with cylindrical equidistant maps. If I have the time, I will try to finish the python code I started for creating even more custom tickmark labels like what you see with these NCL examples:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Applications/Images/mptick_9_1_lg.png">http://www.ncl.ucar.edu/Applications/Images/mptick_9_1_lg.png</a><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Applications/Images/mptick_10_1_lg.png">http://www.ncl.ucar.edu/Applications/Images/mptick_10_1_lg.png</a><br></div><div class="gmail_default" style><br></div><div class="gmail_default" style>--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 4:09 AM, Martin Claus <span dir="ltr"><<a href="mailto:mclaus@geomar.de" target="_blank">mclaus@geomar.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to adjust Tickmarks in a plot produced by a call to<br>
contour_map to match the grid lines drawn on the map.<br>
In NCL I would use gsnMajorLatSpacing, unfortunately this is not<br>
implemented in PyNgl. Is there any way to manipulate the Tickmarks in a<br>
map plot, since tickmark/gridline mismatch is particularly annoying in<br>
orthographic plots.<br>
<br>
Here is a small script to illustrate the problem:<br>
<br>
<br>
import numpy as np<br>
<br>
import Ngl<br>
<br>
sst = np.random.randn(10, 10)<br>
<br>
wks_type = "pdf"<br>
<br>
wks = Ngl.open_wks(wks_type,"test")<br>
<br>
res = Ngl.Resources()<br>
<br>
res.mpGridLatSpacingF = 20.<br>
<br>
map = Ngl.contour_map(wks,sst,res)<br>
<br>
Ngl.end()<br>
<br>
<br>
<br>
PyNGL version: 1.4.0<br>
<br>
Best regards,<br>
Martin<br>
_______________________________________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
</blockquote></div><br></div>