Re: how to create same-size plots

From: Fan Fang <Fan.Fang_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 07 2011 - 10:26:22 MDT

Hi Adam,

Thanks for the info - I'll try it out.

-Fan

On 10/07/2011 12:22 PM, Adam Phillips wrote:
> Hi Fan,
> If NCL is indeed scaling the plot size due to the large title size, then
> to get around it you can draw the title separately using gsn_text_ndc:
> http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text_ndc.shtml
> The vp resources will adjust the plot size 100% of the time then if the
> title is drawn using gsn_text_ndc.. Adam
>
>> Thanks Adam and Mingxuan for your suggestions. We determined that the
>> cause was that the title or subtitle was too long. Apparently NCL was
>> trying to scale the title to fit into the window, and at the same time
>> scaled the plot. Fixing view port wouldn't work in this case, until, I
>> guess, the NCL function can scale the components in plot independently.
>>
>> -Fan
>>
>> On 10/06/2011 12:45 PM, Adam Phillips wrote:
>>> Hi Fan,
>>> Try setting the following 2 resources:
>>>
>>> vpWidthF = 0.8
>>> vpXF = 0.1
>>>
>>> This will force NCL to draw both plots the same width (@80% of the width
>>> of the drawable page)..
>>>
>>> http://www.ncl.ucar.edu/Document/Graphics/Resources/vp.shtml#vpWidthF
>>> http://www.ncl.ucar.edu/Document/Graphics/Resources/vp.shtml#vpXF
>>>
>>> Let ncl-talk know if this doesn't solve your issue.. Adam
>>>
>>> On 10/06/2011 07:46 AM, Fan Fang wrote:
>>>> I use gsn_csm_contour_map_ce() to generate these maps that covers the
>>>> same lat/lon range. The maps came out with different sizes, possibly
>>>> due
>>>> to automatic scaling with the different lengths of the titles. Wonder
>>>> if
>>>> there is a easy way to fix the plot sizes? Thanks.
>>>>
>>>> -Fan
>>>>
>>>>
>>>> _______________________________________________
>>>> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Oct 7 10:26:40 2011

This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT