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

Home » Public Forums » archive » plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plot [message #78567 is a reply to message #7831] Fri, 09 December 2011 08:09 Go to previous messageGo to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
As always, David's got it. But just in case you're not familiar with
the cg* stuff, then the old-fashioned xyouts will work just as well:

x = [0, 35, 70, 140]
y = [0, 196.7, 779.8, 37]
vals=[12006,12507,13008,14010]

names=string(vals,f='(I5)')

plot,x,y,ps=2
xyouts,x,y,vals


-R


PS, you can add all sorts of flags to xyouts to control where the text
appears (such as alignment=alignment where 0<alignment<1, and a few
others). Or you can get really fancy and measure the size of the text
for the plot, and position it with respect to that size...









On Dec 9, 10:06 am, Dave Poreh <d.po...@gmail.com> wrote:
> Folks
> hi,
> I have a data like this and i want to plot column 1 (x) and column 2
> (y) and column 3 as  the name of the points on plot (like 12006, 12507
> etc.). Could somebody help please?
>
> 0     0        12006
> 35  196.7    12507
> 70  779.8    13008
> 140  37      14010
> .............
> Cheers,
> Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot
Next Topic: call_external

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

Current Time: Sun Oct 12 04:33:45 PDT 2025

Total time taken to generate the page: 2.79720 seconds