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

Home » Public Forums » archive » Re: curve labeling program
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: curve labeling program [message #8909] Tue, 13 May 1997 00:00 Go to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
In article <5ks2h8$ftf@cpca3.uea.ac.uk>,
t.osborn@uea.ac.uk wrote:
>
>
> Mirko Vukovic wrote:
> -David Fanning wrote:
> ->
> -> Hi Mirko,
> ->
> -> You write about a curve legend program:
> ->
> -> > If there is not such an animal, I'll probably write it in a day or two.
> -> > If interested in it let me know.
> ->
> -> Good luck with this. This is one of those programs (like COLORBAR)
> -> that you think will be simple but gets more and more complicated
> -> the more you get into it. It is really hard, I think, to write a
> -> *general* program.
>
> Attached is legend.pro which I got with IDL 3.0 (I think) in the user_contrib
> subdirectory, contributed by Fred Knight. I've added an option for different
> line thicknesses and have played around with the character sizes. It's
> fairly general though and is what I (almost) always use for this sort of
> thing.
>
> Cheers
>
> Tim
stuff deleted

Well, I was too impatient, and Tim's reply was too late. So now I have an
offering (well 3) to the world.

set_legend will load defaults and accept changes to them that will be
valid for the next set of legends.

put_legend puts draws the line and puts a single line of text. Most of
the positioning can be controlled and is valid for this one line only.
The idea is to call put_legend soon after a call to plot, with the same
linetype/color/psym. This is geared for calls to plot inside a loop.

finish_legend will tidy up and put up a title over the legends if so
desired.

The position of the legends is controlled in units of the plot box. The
horizontal and vertical dimensions (and character sizes) are all in units
of the character heights and widths.

Since the code is less then a week old, it is bound to be buggy. If
interested, e-mail me (although note that my division of Varian has been
sold to Novellus. So I have no idea what will my e-mail address be 4-6
weeks from now :-) ).

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL map_set question
Next Topic: Changing SLICER Background Color

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

Current Time: Fri Oct 10 13:26:37 PDT 2025

Total time taken to generate the page: 0.72049 seconds