<div dir="ltr"><div class="gmail_default" style="font-size:small">The base plot, which is the first plot in the &quot;overlay&quot; call, is the one that&#39;s going to provide the tickmarks, and not the plot that&#39;s being overlaid.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So, try setting the tmXXX resources inside the &quot;create&quot; block for the logLin plot:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><span style="font-size:12.8000001907349px">  ll_dthdy_x = create &quot;ll&quot; logLinPlotClass wks</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;vpXF&quot;         : vpx</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;vpYF&quot;         : vpy</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;vpWidthF&quot;     : vpw</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;vpHeightF&quot;    : vph</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;trXMinF&quot;      : xmin_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;trXMaxF&quot;      : xmax_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;trYMinF&quot;      : ymin_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;trYMaxF&quot;      : ymax_plot</span></font></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8000001907349px"><font face="monospace, monospace">    &quot;tmYLLabelFontHeightF:  : 0.015    ; or whatever value you want</font></span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><span style="font-size:12.8000001907349px">    &quot;tmXBLabelFontHeightF:  : 0.015    ; or whatever value you want</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">    &quot;pmTickMarkDisplayMode&quot; : &quot;always&quot;</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">  end create</span></font><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 12:05 PM, Gabriele Arduini <span dir="ltr">&lt;<a href="mailto:Gabriele.Arduini@legi.grenoble-inp.fr" target="_blank">Gabriele.Arduini@legi.grenoble-inp.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I forgot to put in cc of my reply all the mailing-list.<br>
Sorry, but It is my first mail on it!<br>
<br>
Gabriele<br>
<br>
-------- Message original --------<br>
Objet: Re: [ncl-talk] Tick mark size in contour plots<br>
Date: 2015-05-04 19:34<br>
De: Gabriele Arduini &lt;<a href="mailto:Gabriele.Arduini@legi.grenoble-inp.fr">Gabriele.Arduini@legi.grenoble-inp.fr</a>&gt;<br>
À: Mary Haley &lt;<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt;<br>
<div class="HOEnZb"><div class="h5"><br>
Hello Mary,<br>
thank you for the precious link, it will help a lot in the future!<br>
<br>
Regarding my problem, I have tried your test script and everything work<br>
fine.<br>
Indeed, I am &quot;linearizing&quot; my plot in order to plot it in terrain<br>
following coordinates (2D coordinates)<br>
without any interpolation. I am wondering if it is the problem... even<br>
though I receive the error message<br>
before the overlay. I have attached here the &quot;plotting&quot; part of the<br>
code, if you need of further informations,<br>
please tell me.<br>
<br>
Thank you in advance for the help,<br>
Gabriele<br>
<br>
:*******************<br>
; PLOTTING SECTION::<br>
:*******************<br>
<br>
   res@gsnDraw           = False           ; do not draw the plot<br>
   res@gsnFrame          = False           ; do not advance the frame<br>
   res@tiYAxisString     = &quot;Height (m a.s.l.)&quot;<br>
   res@tiXAxisString     = &quot;Cross-valley distance x (m)&quot;<br>
   res@tmXBLabelFontHeightF    = 0.04<br>
   res@tmYLLabelFontHeightF    = 0.04<br>
<br>
; Plotting parameters ::<br>
     time_plot     = (start_h-14)*60+it<br>
     z_plot        =  45<br>
     x_plot_in     = (newdims(2)/2)<br>
     x_plot_end    = x_plot_in + (3000 / dx_orig)<br>
;*********************************************************************************<br>
; DTHDY PLOT ::<br>
     opts_dthdy                          = res<br>
<br>
;Label ::<br>
     opts_dthdy@lbLabelBarOn             = True<br>
     opts_dthdy@lbOrientation            = &quot;Vertical&quot;<br>
     opts_dthdy@pmLabelBarSide           = &quot;Right&quot;<br>
     opts_dthdy@lbTitleOn                = False<br>
<br>
; Contour Resources<br>
     opts_dthdy@cnLinesOn                = False       ; turn off the<br>
contour lines<br>
     opts_dthdy@cnFillOn                 = True<br>
     opts_dthdy@cnLineLabelsOn           = False<br>
<br>
     opts_dthdy@cnLevelSelectionMode     = &quot;ManualLevels&quot;<br>
     opts_dthdy@cnMinLevelValF           = -1.<br>
     opts_dthdy@cnMaxLevelValF           =  1.                ; set the<br>
maximum contour level<br>
     opts_dthdy@cnLevelSpacingF          =  0.05              ; set the<br>
interval between contours<br>
<br>
; Change aspect ratio ::<br>
     opts_dthdy@vpWidthF       = 0.8<br>
     opts_dthdy@vpHeightF      = 0.4<br>
<br>
; Plot ::<br>
    opts_dthdy@tiMainString           = &quot;~F22~(a) ~F21~ 3D, t = 300<br>
min&quot;;+ime_plot<br>
    opts_dthdy@sfXArray               =<br>
xlat_vert(:z_plot,x_plot_in:x_plot_in + (x_plot/dx_orig))<br>
    opts_dthdy@sfYArray               = z_av(:z_plot,x_plot_in:x_plot_in<br>
+ (x_plot/dx_orig))<br>
    contour_dthdy_line_linear_x       = gsn_csm_contour(wks,<br>
dthdy_av(:z_plot, x_plot_in:x_plot_end), opts_dthdy)<br>
<br>
;Linearize ::<br>
     getvalues contour_dthdy_line_linear_x<br>
       &quot;vpXF&quot; : vpx<br>
       &quot;vpYF&quot; : vpy<br>
       &quot;vpWidthF&quot; : vpw<br>
       &quot;vpHeightF&quot; : vph<br>
       &quot;trXMinF&quot; : xmin_plot<br>
       &quot;trXMaxF&quot; : xmax_plot<br>
       &quot;trYMinF&quot; : ymin_plot<br>
       &quot;trYMaxF&quot; : ymax_plot<br>
     end getvalues<br>
;<br>
;; now, we linearize the plot!<br>
     setvalues  contour_dthdy_line_linear_x<br>
       &quot;trGridType&quot;    : &quot;curvilinear&quot;<br>
     end setvalues<br>
;;<br>
   ll_dthdy_x = create &quot;ll&quot; logLinPlotClass wks<br>
     &quot;vpXF&quot;         : vpx<br>
     &quot;vpYF&quot;         : vpy<br>
     &quot;vpWidthF&quot;     : vpw<br>
     &quot;vpHeightF&quot;    : vph<br>
     &quot;trXMinF&quot;      : xmin_plot<br>
     &quot;trXMaxF&quot;      : xmax_plot<br>
     &quot;trYMinF&quot;      : ymin_plot<br>
     &quot;trYMaxF&quot;      : ymax_plot<br>
     &quot;pmTickMarkDisplayMode&quot; : &quot;always&quot;<br>
   end create<br>
   overlay(ll_dthdy_x, contour_dthdy_line_linear_x)<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Le 2015-04-29 19:57, Mary Haley a écrit :<br>
&gt; Hi Gabriele,<br>
&gt;<br>
&gt; First, a quick tip: if an NCL graphical resource is not behaving as<br>
&gt; expected, then you can search for all of the application examples that<br>
&gt; use that resource by going to the applications page:<br>
&gt;<br>
&gt; <a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applications/</a> [2]<br>
&gt;<br>
&gt; Click on the word &quot;resources&quot; in the sentence at the top:  <br>
&gt;<br>
&gt; [List of tips [3], resources [4], functions/procedures [5] and the<br>
&gt; example scripts they appear in.]<br>
&gt;<br>
&gt; Wait for the page to load, and you will get a giant alphabetical list<br>
&gt; of resources and all the examples they appear in.<br>
&gt; Here&#39;s a direct link:<br>
&gt;<br>
&gt; <a href="http://www.ncl.ucar.edu/Applications/res_list.shtml#tmXBLabelFontHeightF" target="_blank">http://www.ncl.ucar.edu/Applications/res_list.shtml#tmXBLabelFontHeightF</a><br>
&gt; [6]<br>
&gt;<br>
&gt; Back to your problem: <br>
&gt;<br>
&gt; When you get a message about &quot;yyyyy is not not a resource in xxxx at<br>
&gt; this time&quot;, then you first do two things:<br>
&gt;<br>
&gt;       * Double-check that you&#39;ve spelled the resource name correctly.<br>
&gt;<br>
&gt;       * Make sure you&#39;re applying it to a function that recognizes it. For<br>
&gt; example, you can&#39;t set &quot;xyLineColor&quot; when calling gsn_csm_contour.<br>
&gt;<br>
&gt; In your case, it seems like you are spelling it correctly, and<br>
&gt; gsn_csm_contour should accept both of those resources, so there must<br>
&gt; be something else going on.  <br>
&gt;<br>
&gt; Can you try the attached script to make sure it works?  Also, can you<br>
&gt; provide your script?<br>
&gt;<br>
&gt; --Mary<br>
&gt;<br>
&gt; On Wed, Apr 29, 2015 at 3:56 AM, Gabriele Arduini<br>
&gt; &lt;<a href="mailto:gabriele.arduini@legi.grenoble-inp.fr">gabriele.arduini@legi.grenoble-inp.fr</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Dear ncl-talk users,<br>
&gt;&gt;<br>
&gt;&gt; I have a problem to set the size of the tick marks in my contours<br>
&gt;&gt; plot.<br>
&gt;&gt; Looking on the resources page on the website, I am trying to use<br>
&gt;&gt; the<br>
&gt;&gt; following resources::<br>
&gt;&gt;<br>
&gt;&gt; tmYLLabelFontHeightF , tmXBLabelFontHeightF<br>
&gt;&gt;<br>
&gt;&gt; but I receive back the message during the execution:<br>
&gt;&gt; warning:tmXBLabelFontHeightF is not a valid resource in<br>
&gt;&gt; cr_sect_3x_thyadv_vect_av_300_contour.PlotManager at this time<br>
&gt;&gt; warning:tmYLLabelFontHeightF is not a valid resource in<br>
&gt;&gt; cr_sect_3x_thyadv_vect_av_300_contour.PlotManager at this time<br>
&gt;&gt;<br>
&gt;&gt; The contour function I am using is the ** gsn_csm_contour **.<br>
&gt;&gt; Should I use different resources to set the tick mark size in<br>
&gt;&gt; contour<br>
&gt;&gt; plots?<br>
&gt;&gt;<br>
&gt;&gt; Thank you in advance for the help.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Gabriele Arduini<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; ncl-talk mailing list<br>
&gt;&gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> [1]<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Links:<br>
&gt; ------<br>
&gt; [1] <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt; [2] <a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applications/</a><br>
&gt; [3] <a href="http://www.ncl.ucar.edu/Applications/concepts_list.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/concepts_list.shtml</a><br>
&gt; [4] <a href="http://www.ncl.ucar.edu/Applications/res_list.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/res_list.shtml</a><br>
&gt; [5] <a href="http://www.ncl.ucar.edu/Applications/func_list.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/func_list.shtml</a><br>
&gt; [6]<br>
&gt; <a href="http://www.ncl.ucar.edu/Applications/res_list.shtml#tmXBLabelFontHeightF" target="_blank">http://www.ncl.ucar.edu/Applications/res_list.shtml#tmXBLabelFontHeightF</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div></div></blockquote></div><br></div>