<div dir="ltr"><div class="gmail_default" style="font-size:small">Hello,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You are setting a lot of resources that have to do with tickmarks, so that's likely the culprit.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Since there are two plots being created under the hood by this function, I wouldn't be surprised if there's a bug that is causing the tickmarks from the vector routine to be turned on.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As a test, can you try commenting this line and let ncl-talk know what happens:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<span></span>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Monaco;color:rgb(215,57,30);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space"> </span>res@</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,163,39)">pmTickMarkDisplayMode</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> = </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(255,151,110)">"Always"</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> <span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">; turn on tickmarks <span class="gmail-Apple-converted-space"> </span></span></p>
To work-around this issue, I suggest creating the contour plot over the map using gsn_csm_contour_map, creating the vector plot separately using gsn_csm_vector, and then calling overlay to overlay the vector plot on the contour/map plot. This way, you have more control over which resources get applied to which plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For some help, see the overlay examples pages, and in particular, example wrf_gsn_5.ncl:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/overlay.shtml">http://www.ncl.ucar.edu/Applications/overlay.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Note that this example actually creates *3* plots:</div><div class="gmail_default"><br></div><div class="gmail_default">1. A filled contour plot</div><div class="gmail_default">2. A vector plot</div><div class="gmail_default">3. A map plot using wrf_map_resources to set the map projection</div><div class="gmail_default"><br></div><div class="gmail_default">Then, it uses overlay to overlay #1 and #2 on #3. Either way is fine.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 27, 2018 at 2:21 PM, xiaoming Hu <span dir="ltr"><<a href="mailto:yuanfangcan@hotmail.com" target="_blank">yuanfangcan@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
When I change to gsn_csm_contour_map(wks,x,<wbr>res), I can use tmYLLabelsOn/tmXBLabelsOn to control the latitude and longitude axis labels. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The problem is when I use gsn_csm_vector_scalar_map(<wbr>wks,u,v,x,res), why the additional axis labels (numbers) and tickmark show up and how can I control it? </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am using 6.3.0</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks</div><span class="HOEnZb"><font color="#888888">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Xiaoming </div>
</font></span><hr style="display:inline-block;width:98%"><div class="hm HOEnZb">
<div id="m_7435464664863225731divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ncl-talk <<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of xiaoming Hu <<a href="mailto:yuanfangcan@hotmail.com" target="_blank">yuanfangcan@hotmail.com</a>><br>
<b>Sent:</b> Thursday, July 26, 2018 2:34 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>; Xiaoming Hu<br>
<b>Subject:</b> [ncl-talk] why do I get double Axis labels when I use gsn_csm_vector_scalar_map</font>
<div> </div>
</div></div><span class="">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
why do I get double Axis labels when I use gsn_csm_vector_scalar_map<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I attached both my script and part of the figure.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks a lot!</div>
</div>
</span></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>