comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat [message #69591] Fri, 05 February 2010 10:59
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

>
> 1) Obvious: use ALIGNMENT=0.5 to get the text centered on the point.
> 2) Less obvious: use a STRING(data,FORMAT='(iN.N)') and put the data
> in a fixed-width format.
>
> I wish IDL would do better, maybe it can and I am missing something. I
> simply want to substitute an integer label from 1-999 for the symbols
> in a scatter plot. Basically, what I find is that unless I specify
> FORMAT='(i3.3)' and make it plot 1 as '0001', the smaller numbers will
> be offset to the right. I would have expected that FORMAT='(i)' would
> give me what I want, but instead I get a tab-sized offset on every
> number, even with ALIGN=0.5.

Here is how I do it:

http://www.dfanning.com/graphics_tips/numlabel.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat
Next Topic: Re: Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:23 PDT 2025

Total time taken to generate the page: 0.00457 seconds