Hi Jian,
To be clear, I don't believe anything was technically wrong with either 
your script or NCL's behavior.. You just had to come up with a standard 
way to adjust the vcRefLength for the 2nd panel to make it the same as 
the first, which is what you and Tingting have done. So I see this as 
being resolved..
Adam
On 09/23/2013 12:36 PM, Jian Zheng wrote:
> Hi Adam,
>
> Attached is my original entire script.
>
> After discussing with Tingting, we got a little complicated method to 
> archive this.
>
> When I set vcRefLengthF 0.035 for both panels, the actual length of 
> vector reference is resized to 0.0338861 for panel 1 and 0.0249521 for 
> panel 2. If I want the actual length in panel 2 same as in panel 1, I 
> need set vcRefLengthF 0.0338861*(0.035/0.0249521) for panel 2. 
> Attached png is based on this method.
>
> Thanks very much.
> Jian
>
>
> On Mon, Sep 23, 2013 at 9:07 AM, Adam Phillips <asphilli@ucar.edu 
> <mailto:asphilli@ucar.edu>> wrote:
>
>     Hi Jian,
>     Can you send along the entire graphical section of your script? It
>     would be helpful to see all the plot resources that you are
>     setting, especially where you are setting your vp*F resources.
>     Thanks,
>     Adam
>
>
>
>     On 09/20/2013 05:46 PM, Jian Zheng wrote:
>>     Hi Adam,
>>
>>     I have already used vpXF/vpYF/vpWidthF/vpHeightF, sorry for the
>>     misleading.
>>
>>     I attach my figure. The length of vector reference in the right
>>     panel is shorter than that in the left one. I hope to set them same.
>>
>>     here are the vector resource
>>       vecres              = True            ; vector only resources
>>     vecres@gsnDraw          = False           ; don't draw
>>     vecres@gsnFrame         = False           ; don't advance frame
>>     vecres@gsnAddCyclic = False  ;the data does not cover the whole globe
>>
>>     ;  vecres@vcGlyphStyle     = "CurlyVector"   ; curly vectors
>>     vecres@vcRefMagnitudeF  =4              ; define vector ref mag
>>     vecres@vcRefLengthF     = 0.035           ; define length of vec
>>     ref, same for the two panels
>>     vecres@gsnRightString   = " "             ; turn off right string
>>     vecres@gsnLeftString    = " "             ; turn off left string
>>     vecres@tiXAxisString    = " "             ; turn off axis label
>>     vecres@vcRefAnnoOrthogonalPosF = -0.3    ; move ref vector into plot
>>     vecres@vcRefAnnoString2On = "False"
>>     vecres@vcMinDistanceF  = 0.02
>>     ---------------
>>
>>     Thanks all the same.
>>     Jian
>>
>>
>>     On Fri, Sep 20, 2013 at 4:14 PM, Adam Phillips <asphilli@ucar.edu
>>     <mailto:asphilli@ucar.edu>> wrote:
>>
>>         Hi Jian,
>>         Yes, gsn_panel resizes the plots and as you have two
>>         different sized plots the reference vectors will likely get
>>         resized to different values. I am not sure of an automatic
>>         way to do what you want; a developer will have to chime in on
>>         whether an automatic way exists.
>>
>>         But, one way to do it would be to bypass using gsn_panel and
>>         to use the vpXF/vpYF/vpWidthF/vpHeightF resources to manually
>>         draw your two panels on the page. See example #9 here:
>>         http://www.ncl.ucar.edu/Applications/panel.shtml#ex9
>>
>>         Hope that helps. If not, please respond back to the ncl-talk
>>         email list..
>>         Adam
>>
>>
>>         On 09/19/2013 03:07 PM, Jian Zheng wrote:
>>>         Hi,
>>>
>>>         I make a two-panel plot with different size. The length of
>>>         vector reference are different in the two panels, although I
>>>         have set the vcRefLengthF same (0.035). Using getvalues, I
>>>         find the vcRefLengthF of the two plots are 0.0249521 and
>>>         0.0338861, respectively. Does the real length of vector
>>>         reference equal vcRefLengthF*panel size? How to set the real
>>>         length same for every panel regardless of the panel size?
>>>
>>>         Thanks,
>>>         Jian
>>>
>>>
>>>         _______________________________________________
>>>         ncl-talk mailing list
>>>         List instructions, subscriber options, unsubscribe:
>>>         http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>         -- 
>>         ______________________________________________________________
>>         Adam Phillipsasphilli@ucar.edu  <mailto:asphilli@ucar.edu>
>>         NCAR/Climate and Global Dynamics Division(303) 497-1726  <tel:%28303%29%20497-1726>     
>>         P.O. Box 3000				
>>         Boulder, CO 80307-3000http://www.cgd.ucar.edu/cas/asphilli
>>
>>
>
>     -- 
>     ______________________________________________________________
>     Adam Phillipsasphilli@ucar.edu  <mailto:asphilli@ucar.edu>
>     NCAR/Climate and Global Dynamics Division(303) 497-1726  <tel:%28303%29%20497-1726>     
>     P.O. Box 3000				
>     Boulder, CO 80307-3000http://www.cgd.ucar.edu/cas/asphilli
>
>
>
>
> _______________________________________________
> 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 (303) 497-1726 P.O. Box 3000 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 Mon Sep 23 13:25:31 2013
This archive was generated by hypermail 2.1.8 : Tue Oct 01 2013 - 14:41:44 MDT