<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Mary </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);">
   By commenting out </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
  "<span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">res@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,163,39)">pmTickMarkDisplayMode</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">
 = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(255,151,110)">"Always"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">
<span></span></span>"   all the tickmark labels are gone, which is not what I wanted. </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);">
  Using your overlay method, I solved the problem, i.e., removed the extra labels. </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 style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Xiaoming</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mary Haley <haley@ucar.edu><br>
<b>Sent:</b> Friday, July 27, 2018 5:24 PM<br>
<b>To:</b> xiaoming Hu<br>
<b>Cc:</b> ncl-talk@ucar.edu; Xiaoming Hu<br>
<b>Subject:</b> Re: [ncl-talk] why do I get double Axis labels when I use gsn_csm_vector_scalar_map</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-size:small">Hello,</div>
<div class="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_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="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_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="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_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="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_gmail_default" style="font-size:small"><span></span>
<p class="x_gmail-p1" style="margin:0px; font-weight:normal; font-size:18px; line-height:normal; font-family:Monaco; color:rgb(215,57,30); background-color:rgb(255,255,255)">
<span class="x_gmail-s1" style="color:rgb(0,0,0)"><span class="x_gmail-Apple-converted-space"> 
</span>res@</span><span class="x_gmail-s2" style="color:rgb(52,163,39)">pmTickMarkDisplayMode</span><span class="x_gmail-s1" style="color:rgb(0,0,0)"> =
</span><span class="x_gmail-s3" style="color:rgb(255,151,110)">"Always"</span><span class="x_gmail-s1" style="color:rgb(0,0,0)">
<span class="x_gmail-Apple-converted-space">        </span></span><span class="x_gmail-s4" style="">; turn on tickmarks
<span class="x_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="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_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="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_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="x_gmail_default"><br>
</div>
<div class="x_gmail_default">Note that this example actually creates *3* plots:</div>
<div class="x_gmail_default"><br>
</div>
<div class="x_gmail_default">1. A filled contour plot</div>
<div class="x_gmail_default">2. A vector plot</div>
<div class="x_gmail_default">3. A map plot using wrf_map_resources to set the map projection</div>
<div class="x_gmail_default"><br>
</div>
<div class="x_gmail_default">Then, it uses overlay to overlay #1 and #2 on #3.  Either way is fine.</div>
<div class="x_gmail_default"><br>
</div>
<div class="x_gmail_default">--Mary</div>
<div class="x_gmail_default"><br>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_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="x_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="x_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="x_hm x_HOEnZb">
<div id="x_m_7435464664863225731divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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>
</div>
</body>
</html>