<div dir="ltr"><div class="gmail_default">Hi Tabish,<br><br>I haven't tried this with wrf_map_overlays, but I think if you want to change the width and height, you need to do it using the second resource list associated with wrf_map_overlays:<br><br><font face="monospace, monospace">mpres = True<br>mpres@vpHeightF = vph<br>plot(1) = wrf_map_overlays(c,wks,(/contour_d04/),pltres,mpres) </font><br><br>If that doesn't work, then you could try setting the height after the plot is created:<br><br><font face="monospace, monospace">plot(1) = wrf_map_overlays(c,wks,(/contour_d04/),pltres,False) <br>setvalues plot(1)<br> "vpHeightF" : vph<br>end setvalues</font><br></div><br>If that still doesn't work, then it would help if you could provide your data file, which you can use our ftp for, if the file is not too large. You can email me this information offline if you don't want to email the whole group.<br><br><a href="http://www.ncl.ucar.edu/ftp_files.shtml">http://www.ncl.ucar.edu/ftp_files.shtml</a><div><br></div><div><br>--Mary<br><br><div class="gmail_default"><div class="gmail_default" style="font-size:12.8px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;font-family:"trebuchet ms",sans-serif"><i><span><br class="gmail-Apple-interchange-newline"><br></span></i></div><br class="gmail-Apple-interchange-newline"><br></div><div class="gmail_default" style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 22, 2018 at 10:07 AM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.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 class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Mary,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks for your response.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I tried to include the following lines in the panelplot script:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><i>plot = new(2,graphic) <wbr> ; create a plot array<br>plot(0) = wrf_map_overlays(a,wks,(/<wbr>contour_d01/),pltres,mpres) ; Plot the data over a map background<br><br>;---Retrieve the height used for the first plot and apply to second plot<br> getvalues plot(0)<br> "vpHeightF" : vph<br> end getvalues<br><br> pltres@vpHeightF <wbr> = vph<br><br>plot(1) = wrf_map_overlays(c,wks,(/<wbr>contour_d04/),pltres,False) </i><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">However, it still plots them with different height.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Does the wrf_map_overlays() function does not accept these resources?</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks</div><span class=""><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br clear="all"></div><div><div dir="ltr" class="m_7441072021760762195gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div><br></span></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, 20 Aug 2018 at 21:59, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Tabish,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You might be able to still use gsn_panel with the different-sized plots.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The key is creating the first plot, and then retrieving the height of that plot and using it to set the height of the second plot. Then, when gsn_panel goes to panel both plots, it should retain the heights relative to each other.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See the attached sample script, which only draws a map since I don't have your dataset.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can use gsnPanelXF to tweak the X positions of the paneled plots if you need to.</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 Mon, Aug 20, 2018 at 9:56 AM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.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 class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I want to panel two plots side by side but they're of different sizes. The panelplot routine in ncl does plot them but they remain of different heights. I want to use the vp resources to manually shrink them so that their height matches.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have attached 2 scripts: first one is working and uses the panelplot resource and creates the figure that is attached, second one uses vp resources but doesn't panel the two plots side by side.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I'd really appreciate if you could point out what's wrong in the second script.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Cheers,<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br><br><br clear="all"></div><div><div class="m_7441072021760762195m_2337256799485792410m_-2759575130746058601gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div>
</div></div></blockquote></div><br></div>