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

Home » Public Forums » archive » Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using XYOUTS to substitute numbers for symbols on scatter plots: a caveat [message #69592] Fri, 05 February 2010 10:42
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
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.

--Edward H.
[Message index]
 
Read Message
Previous Topic: Re: overlaying two plots
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: Fri Oct 10 01:23:56 PDT 2025

Total time taken to generate the page: 8.63999 seconds