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

Home » Public Forums » archive » Re: how to add mark for every points in each 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: how to add mark for every points in each plot? [message #10600] Wed, 07 January 1998 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
David Fanning wrote:
>
> hwang (hwang@umassd.edu) writes:
>
>> I have two arrays.Every array has 12 numbers.Each number stands for the
>> data for every month of some year.My boss want to plot these two
>> arrays(X versus Y) but he let me mark '1','2',......or
>> 'Jan','Feb'......besides every point in the plot.
[...]

[and David provides an example code using xyouts]

just a short addendum: if you want to label the points with numerical
values, you should use the string function (which includes a format
option). Then you would build a label string array like

valstr = string(y,format="(f7.2)")

and put that out as David suggested

xyouts,x,y,valstr,align=0.5

Martin.


------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: problem with arrays of structures
Next Topic: Does TRIANGULATE return vertices in counter-clockwise order?

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

Current Time: Sat Oct 11 14:09:45 PDT 2025

Total time taken to generate the page: 2.84700 seconds