<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)                          ; create a plot array<br>plot(0) = wrf_map_overlays(a,wks,(/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                   = vph<br><br>plot(1) = wrf_map_overlays(c,wks,(/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><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="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><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 20 Aug 2018 at 21:59, Mary Haley <<a href="mailto:haley@ucar.edu">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_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>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div>