Re: Taylor Diagrams in IDL [message #82854 is a reply to message #82744] |
Tue, 22 January 2013 14:18   |
santorofer
Messages: 14 Registered: July 2008
|
Junior Member |
|
|
Hi David and all,
Thank you so much David for your kind comments on my Taylor plot using New Graphics!. I did notice that I didn't have a way to add labels to the data points, as you did in the DC version of the code, so I did that.
Now there is a new version of my code using New Graphics. The adding to the code, to show labels next to each data point, was straight forward, just 2 lines of code:
; Adding labels next to each data point
delta=0.02
label=TEXT(data_x + delta, data_y + delta, labels, /DATA)
where data_x and _y are the data point coordinates, and labels is an array of strings, where each element is the label for that particular data point.
This simplicity is one of the advantages of New Graphics.
Please, find my code here:
http://www.exelisvis.com/Default.aspx?tabid=1540&id=1396
Cheers and thanks again for your comments David!,
Fernando
On Thursday, January 10, 2013 12:08:05 PM UTC-7, David Fanning wrote:
> Folks,
>
>
>
> I was poking around last night on the ExelisVis Code Library web page
>
> and found an extremely well-written program by Fernando Santoro that
>
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
>
>
> Having need one of these for some time, I immediately set about
>
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
>
> stolen most of Fernado's hard work. To make up for it, I have added a
>
> couple of features that I thought the original program lacked.
>
>
>
> If you have not yet converted to IDL 8 graphics, you may be
>
> interested in this direct graphics implementation. You can
>
> read more about it here:
>
>
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|