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 #78561 is a reply to message #7831] Fri, 09 December 2011 12:23 Go to previous messageGo to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
Yeah, that test I gave you was with IDL 8.1.

-R

xyouts is a very old (I think it's first generation IDL) way of doing
this. And David's thing cgText is, if I may speak for him, just a
wrapper to xyouts to get all the various keywords set in a more User-
friendly way. I learned IDL in a fairly closed-box environment, so
I'm used to reinventing the wheel ;).



On Dec 9, 2:46 pm, Dave Poreh <d.po...@gmail.com> wrote:
> On Dec 9, 10:28 am, Dave Poreh <d.po...@gmail.com> wrote:
>
>
>
>
>
>> On Dec 9, 8:09 am, Russell <rryan....@gmail.com> wrote:
>
>>> 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
>
>> Thanks. both works very good.
>> Cheers,
>> Dave
>
> @ Dear Russell
> Does xyouts work with IDL 8.0 or not?
> 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: Wed Oct 08 20:11:01 PDT 2025

Total time taken to generate the page: 0.00334 seconds