Re: Taylor diagram

From: Lei Meng <dream916_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 07 2011 - 14:25:18 MST

Thanks. These two factors indeed control. However, some correlation labels
are missed when I adjust the two factors (see attached). I spent a quite
amount of time to adjust the two factors simultaneously and just can not get
it right. Is there any other resources that also matter? Thanks,
 Lei

On Mon, Mar 7, 2011 at 3:10 PM, Dennis Shea <shea@ucar.edu> wrote:

> Look in the following section
> Play with the 0.020 and 0.60 factors.
>
> ===================================
>
> ; ----------------------------------------------------------------
> ; Part 2:
> ; Correlation labels
> ; ----------------------------------------------------------------
> radC = xyMax ; for correlation labels
> xC = radC*cos(angC*rad)
> yC = radC*sin(angC*rad)
> ; added to get some separation
> xC = xC + 0.020*cos(rad*angC)
> yC = yC + 0.060*sin(rad*angC)
>
> --
>
>
>
>
> On 3/7/11 12:58 PM, Lei Meng wrote:
>
>> Thanks. I changed the code to increase the range of values on y-axis.
>> But I found that the correlation labels are little bit offset,
>> particularly 0.0 to 0.6 (see attached figure). Which resource can be
>> used to adjust it? Thanks,
>> Lei
>>
>> On Mon, Mar 7, 2011 at 10:13 AM, Dennis Shea <shea@ucar.edu
>> <mailto:shea@ucar.edu>> wrote:
>>
>> Hello
>>
>> If you go to the following:
>>
>>
>> http://www-pcmdi.llnl.gov/about/staff/Taylor/CV/Taylor_diagram_primer.htm
>>
>> Then click on " Taylor_diagram_examples.pdf"
>> The first example is a 'full' taylor diagram.
>>
>> As you can see, the x-axis is symmetric.
>> In your case -2 to +2. Also, negative correlation
>> labels must be added.
>>
>> I am quite sure the plot could be modified to
>> handle asymmetric x-axis but it would involve
>> modifying the code even more.
>>
>> Good luck
>>
>>
>> On 3/6/11 3:24 PM, Lei Meng wrote:
>>
>> Hi,
>>
>> I only apply log scale to the ratio of variances, not
>> correlations.
>> I changed the numbers in taylor_diagram.ncl and I got the attached
>> figure. Do you have any sense what might be wrong with the code?
>> The
>> modified code is also attached. Thanks,
>> Lei
>>
>>
>> On Sun, Mar 6, 2011 at 4:22 PM, Dennis Shea <shea@ucar.edu
>> <mailto:shea@ucar.edu>
>> <mailto:shea@ucar.edu <mailto:shea@ucar.edu>>> wrote:
>>
>> The following illustrates how we handle negative values.
>> http://www.cgd.ucar.edu/~shea/taylor_biasNegCC-1.png
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_biasNegCC-1.png>
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_biasNegCC-1.png>
>>
>> http://www.cgd.ucar.edu/~shea/taylor_biasNegCC-1.png
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_biasNegCC-1.png>
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_biasNegCC-1.png>
>>
>> The script is
>> http://www.cgd.ucar.edu/~shea/taylor_diagram_cam.ncl
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_diagram_cam.ncl>
>> <http://www.cgd.ucar.edu/%7Eshea/taylor_diagram_cam.ncl>
>>
>>
>> ===
>> (a) To have ratios as large as 100 is very unusual.
>> Even more than 2 is unusual.
>> (b) log scale: I am not sure how you would do this if
>> there are negative values
>>
>> Can you change the code? Well, yes, I am sure you can.
>> However, it will require you to become with some detailed
>> aspects
>> of the graphics
>>
>> Some numbers to chage
>>
>> xyMin = 0.
>> xyOne = 1.00
>> xyMax = 1.65
>>
>>
>> ;
>> default "OBS" or "REF"
>> ;rxy@tmXBLabels = (/"0.00","0.25","0.50","0.75","REF"
>> ,"1.25","1.50"/)
>> rxy@tmXBLabels = (/" ","0.25","0.50","0.75","REF"
>> ,"1.25","1.50"/)
>> if (rOpts .and. isatt(rOpts,"OneX") ) then
>> ;
>> eg: rOpts@OneX="1.00"
>> ;rxy@tmXBLabels =
>> (/"0.00","0.25","0.50","0.75",rOpts@OneX,"1.25","1.50"/)
>> rxy@tmXBLabels = (/"
>> ","0.25","0.50","0.75",rOpts@OneX,"1.25","1.50"/)
>> end if
>>
>> rxy@tmXBMajorLengthF = 0.015 ; default=0.02 for a
>> vpHeightF=0.6
>> rxy@tmXBLabelFontHeightF = FontHeightF
>> rxy@tmXBMinorOn = False
>> rxy@trXMaxF = xyMax_Panel
>>
>> rxy@tmYLMode = "Manual"
>> rxy@tmYLMinorOn = False
>> rxy@tmYLMajorLengthF = rxy@tmXBMajorLengthF
>> rxy@tmYLLabelFontHeightF = FontHeightF
>> rxy@tmYLMode = "Explicit"
>> rxy@tmYLValues = (/0.0, .25,0.50, 0.75, 1.00, 1.25,
>> 1.5/) ;
>> major tm
>> rxy@tmYLLabels =
>> (/"0.00","0.25","0.50","0.75","1.00","1.25","1.50"/)
>> ;rxy@tmYLLabels = (/"
>> ","0.25","0.50","0.75","1.00","1.25","1.50"/)
>>
>>
>>
>>
>> On 3/6/11 12:50 PM, Lei Meng wrote:
>>
>> Hi,
>> I wonder if I can change the range of standardized
>> deviation
>> on a
>> Taylor diagram. All examples on the ncl-ncar website
>> show a range of
>> 0-1.6. I am trying to plot a very large range of values
>> on x-y axis
>> (from 0 to more than 100). log scale on x-y axis would be
>> better. How
>> can I make x-y axis on the diagram starting from negative
>> values. I made
>> some changes to taylor_diagram.ncl, but did not work.
>> Thanks,
>> Lei
>>
>>
>>
>> _______________________________________________
>> 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 Mon Mar 7 14:25:32 2011

This archive was generated by hypermail 2.1.8 : Mon Mar 07 2011 - 15:20:57 MST