Re: (no subject)

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 25 2011 - 21:48:02 MDT

Saji has a good suggestion.. Adding to that, I think you do want to use
the viewport resources (vpYF, vpXF, vpWidthF, vpHeightF). However, I'd use
them only for your XY plot. I think it would be most efficient to draw
your contour plots with gsn_panel however. So, the order of your code
would be like this:

create X1 plot
create X2 plot (do not draw or advance the frame for either)

resP = True
resP@gsnPanelBottom = 0.45 ; draw panel plots above .45 NDC units
resP@gsnFrame = False
gsn_panel(wks,plot,(/2,1/),resP)

res = True
res@vpWidthF = 0.8
res@vpXF = (1-res@vpWidthF)/2.
res@vpHeightF = 0.3
res@vpYF = 0.4
<snip>
plot = gsn_csm_xy(....)

You will likely have to adjust the vp resource settings I set here.. But I
definitely think this is the way to go.
Good luck,
Adam

> Hi!
>
> Looks like you did not check out Panel Plot examples fully.
>
> http://ncl.ucar.edu/Applications/panel.shtml
>
> For e.g the sample program panel_9.ncl is all about using view ports to do
> exactly what you wanted to do ..
>
> cheers,
>
> saji
>
> On Wed, Oct 26, 2011 at 12:19 PM, Torben Mueller <torbenmllr@aol.com>
> wrote:
>
>> Dear NCL community,
>>
>> I would like to do a certain type of panel plot for which I could not
>> find
>> any example in the resources.
>> I want to outline the plot as follows:
>>
>> X1 X2
>> X3
>>
>> X1 and X2 are contour plots and X3 is a time series xy plot.
>>
>> I used the following arguments:
>>
>> resP = True
>> resP@gsnPanelRowSpec = True ; tell panel what order to
>> plt
>> gsn_panel(wks,plot,(/2,1/),resP)
>>
>> However, this results in the xy plot being centered in the middle and
>> not
>> using the width of the plot (width X1 + width X2).
>> Is there an easy solution on how to use the full length for the third
>> plot
>> in the panel?
>>
>> Thanks!
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

__________________________________________________
Adam Phillips asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division
P.O. Box 3000 (303) 497-1726
Boulder, CO 80307-3000
http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 25 21:48:08 2011

This archive was generated by hypermail 2.1.8 : Fri Oct 28 2011 - 10:52:03 MDT