<div dir="ltr"><div class="gmail_default" style="font-size:small">The base plot, which is the first plot in the "overlay" call, is the one that's going to provide the tickmarks, and not the plot that'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 "create" 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 "ll" logLinPlotClass wks</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "vpXF" : vpx</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "vpYF" : vpy</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "vpWidthF" : vpw</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "vpHeightF" : vph</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "trXMinF" : xmin_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "trXMaxF" : xmax_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "trYMinF" : ymin_plot</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "trYMaxF" : ymax_plot</span></font></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8000001907349px"><font face="monospace, monospace"> "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"> "tmXBLabelFontHeightF: : 0.015 ; or whatever value you want</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> "pmTickMarkDisplayMode" : "always"</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"><<a href="mailto:Gabriele.Arduini@legi.grenoble-inp.fr" target="_blank">Gabriele.Arduini@legi.grenoble-inp.fr</a>></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 <<a href="mailto:Gabriele.Arduini@legi.grenoble-inp.fr">Gabriele.Arduini@legi.grenoble-inp.fr</a>><br>
À: Mary Haley <<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>><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 "linearizing" 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 "plotting" 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 = "Height (m a.s.l.)"<br>
res@tiXAxisString = "Cross-valley distance x (m)"<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 = "Vertical"<br>
opts_dthdy@pmLabelBarSide = "Right"<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 = "ManualLevels"<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 = "~F22~(a) ~F21~ 3D, t = 300<br>
min";+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>
"vpXF" : vpx<br>
"vpYF" : vpy<br>
"vpWidthF" : vpw<br>
"vpHeightF" : vph<br>
"trXMinF" : xmin_plot<br>
"trXMaxF" : xmax_plot<br>
"trYMinF" : ymin_plot<br>
"trYMaxF" : ymax_plot<br>
end getvalues<br>
;<br>
;; now, we linearize the plot!<br>
setvalues contour_dthdy_line_linear_x<br>
"trGridType" : "curvilinear"<br>
end setvalues<br>
;;<br>
ll_dthdy_x = create "ll" logLinPlotClass wks<br>
"vpXF" : vpx<br>
"vpYF" : vpy<br>
"vpWidthF" : vpw<br>
"vpHeightF" : vph<br>
"trXMinF" : xmin_plot<br>
"trXMaxF" : xmax_plot<br>
"trYMinF" : ymin_plot<br>
"trYMaxF" : ymax_plot<br>
"pmTickMarkDisplayMode" : "always"<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>
> Hi Gabriele,<br>
><br>
> First, a quick tip: if an NCL graphical resource is not behaving as<br>
> expected, then you can search for all of the application examples that<br>
> use that resource by going to the applications page:<br>
><br>
> <a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applications/</a> [2]<br>
><br>
> Click on the word "resources" in the sentence at the top: <br>
><br>
> [List of tips [3], resources [4], functions/procedures [5] and the<br>
> example scripts they appear in.]<br>
><br>
> Wait for the page to load, and you will get a giant alphabetical list<br>
> of resources and all the examples they appear in.<br>
> Here's a direct link:<br>
><br>
> <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>
> [6]<br>
><br>
> Back to your problem: <br>
><br>
> When you get a message about "yyyyy is not not a resource in xxxx at<br>
> this time", then you first do two things:<br>
><br>
> * Double-check that you've spelled the resource name correctly.<br>
><br>
> * Make sure you're applying it to a function that recognizes it. For<br>
> example, you can't set "xyLineColor" when calling gsn_csm_contour.<br>
><br>
> In your case, it seems like you are spelling it correctly, and<br>
> gsn_csm_contour should accept both of those resources, so there must<br>
> be something else going on. <br>
><br>
> Can you try the attached script to make sure it works? Also, can you<br>
> provide your script?<br>
><br>
> --Mary<br>
><br>
> On Wed, Apr 29, 2015 at 3:56 AM, Gabriele Arduini<br>
> <<a href="mailto:gabriele.arduini@legi.grenoble-inp.fr">gabriele.arduini@legi.grenoble-inp.fr</a>> wrote:<br>
><br>
>> Dear ncl-talk users,<br>
>><br>
>> I have a problem to set the size of the tick marks in my contours<br>
>> plot.<br>
>> Looking on the resources page on the website, I am trying to use<br>
>> the<br>
>> following resources::<br>
>><br>
>> tmYLLabelFontHeightF , tmXBLabelFontHeightF<br>
>><br>
>> but I receive back the message during the execution:<br>
>> warning:tmXBLabelFontHeightF is not a valid resource in<br>
>> cr_sect_3x_thyadv_vect_av_300_contour.PlotManager at this time<br>
>> warning:tmYLLabelFontHeightF is not a valid resource in<br>
>> cr_sect_3x_thyadv_vect_av_300_contour.PlotManager at this time<br>
>><br>
>> The contour function I am using is the ** gsn_csm_contour **.<br>
>> Should I use different resources to set the tick mark size in<br>
>> contour<br>
>> plots?<br>
>><br>
>> Thank you in advance for the help.<br>
>><br>
>> Regards,<br>
>> Gabriele Arduini<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> [1]<br>
><br>
><br>
><br>
> Links:<br>
> ------<br>
> [1] <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> [2] <a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applications/</a><br>
> [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>
> [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>
> [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>
> [6]<br>
> <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>