<div dir="ltr"><div>Hi,</div><div><br></div><div>The resource errors are due to a typo -- it should be tiMain<span style="color:rgb(255,0,0)">On</span>.</div><div><br></div><div>I'm not sure about the sizing.</div><div><br></div><div>Rick<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 26, 2020 at 3:47 AM Geeta Geeta via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Mr Phillips.<br>
I did as you had told me to.<br>
1. commented the draw and frame lines and added those Resources to the panel plots. and rescommon@tiMain = False<br>
<br>
but got warning message. warning:tiMain is not a valid resource in wind_contour at this time<br>
warning:tiMain is not a valid resource in map at this time<br>
warning:tiMain is not a valid resource in wind_vector at this time<br>
warning:tiMain is not a valid resource in wind_vector at this time<br>
warning:tiMain is not a valid resource in wind_vector at this time<br>
warning:tiMain is not a valid resource in wind_contour at this time<br>
warning:tiMain is not a valid resource in wind_contour at this time<br>
warning:tiMain is not a valid resource in wind_contour at this time<br>
warning:tiMain is not a valid resource in wind_contour at this time<br>
warning:tiMain is not a valid resource in map at this time<br>
<br>
<br>
2. No of Plots are now =4.<br>
<br>
But the size of plot remains the same. These are overlay plots which I am panelling. <br>
PLOT = new(4,graphic)<br>
gsn_panel(wks,PLOT,(/4,1/),resP)<br>
<br>
<br>
thanks once again. I am attaching the figure so obtained.<br>
<br>
Geeta.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Tuesday, 25 August, 2020, 09:13:40 pm IST, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
<br>
<br>
<br>
<br>
<br>
Hi Geeta,It looks like you are drawing each individual plot and then advancing the frame before your call gsn_panel:draw(PLOT(3))<br>
frame(wks)<br>
<br>
remove all of the draw(PLOT lines and the frame(wks) lines. I am surprised you are not getting an error message when you are doing this as you are trying to draw the same plot twice.<br>
Assuming you corrected the definition of PLOT to be of size 4, there are a few other steps you can take to try to minimize the space between the panels (and therefore increase the size of each panel).Try setting these:<br>
rescommon@tiMainOn = False ; turn off main title; do not save space for main titleresP@gsnPanelYWhiteSpacePercent = 0.0 ; set the amount of Y-axis space between the panels equal to 0.<br>
Hope that helps!Adam<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Aug 24, 2020 at 10:32 PM Geeta Geeta <<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>> wrote:<br>
Thank you Mr Phillips.<br>
<br>
I will try with label bar resources.<br>
<br>
<br>
<br>
I also wanted know why the plots are so small. when I have set resP@gsnMaximize = True ; maximize plots in the panel plot resources.<br>
<br>
<br>
<br>
what I should do to make them cover the entire page.<br>
<br>
<br>
<br>
Geeta.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Monday, 24 August, 2020, 09:57:49 pm IST, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Hi Geeta,1 - You are getting the error message because PLOT was defined like this:PLOT = new(5,graphic)<br>
<br>
but then 4 plots were specified in your call to gsn_panel:gsn_panel(wks,PLOT,(/4,1/),resP)<br>
<br>
<br>
<br>
Set PLOT = new(4,graphic) and the error will disappear.<br>
<br>
2 - If you set cnFillOn = False, NCL will not draw a labelbar even if you set lbLabelBarOn = True. You will need to use gsn_labelbar_ndc or gsn_create_labelbar. I prefer gsn_labelbar_ndc unless you need to attach a labelbar to a plot. See the examples at the bottom of the gsn_labelbar_ndc documentation page, specifically the first example, for how to use this procedure.<br>
<br>
3 - There are numerous ways to alter the labelbar, most of which are shown in the labelbar applications page here: <a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Applications/labelbar.shtml</a><br>
<br>
Hope that helps!Adam<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Aug 24, 2020 at 5:39 AM Geeta Geeta via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br>
<br>
Hi<br>
<br>
<br>
<br>
I am making panel plots with 4 rows and 1 column.<br>
<br>
<br>
<br>
I have set following resources in the PANEL plots<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
resP = True<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
resP@gsnMaximize = True ; maximize plots<br>
<br>
<br>
<br>
resP@gsnPanelLabelBar = True<br>
<br>
<br>
<br>
resP@lbOrientation = "Vertical"<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
So 1st problem is panel plots are very small. this is the error coming. I have defined 4 rows and 1 columns and the no pf PLOTS=4<br>
<br>
<br>
<br>
then why this warning message is coming<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
(0) Warning: gsn_panel: you have more plots than you have panels.<br>
<br>
<br>
<br>
(0) Only 4 plots will be drawn.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
2. The second label bar wrt the Q contour is not shown.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
3. How can I adjust the two label bars. (one for filled contours and other for the line)<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
kindly suggest.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Geeta._______________________________________________<br>
<br>
<br>
<br>
ncl-talk mailing list<br>
<br>
<br>
<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
<br>
<br>
<br>
List instructions, subscriber options, unsubscribe:<br>
<br>
<br>
<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
--<br>
<br>
Adam Phillips<br>
<br>
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR<br>
<br>
<a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> 303-497-1726<br>
<br>
<br>
<br>
--<br>
Adam Phillips<br>
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR<br>
<a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> 303-497-1726_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>