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

Home » Public Forums » archive » Re: /NORM with OPLOT and other thoughts
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: /NORM with OPLOT and other thoughts [message #425 is a reply to message #422] Mon, 17 August 1992 04:17 Go to previous message
toma is currently offline  toma
Messages: 3
Registered: February 1992
Junior Member
In article <16AUG199217070886@stars.gsfc.nasa.gov> landsman@stars.gsfc.nasa.gov (Wayne Landsman (301)-286-3625) writes:
>
> I am trying to write the annotation on a plot, which explains the
> meaning of each of the PSYM symbols I used. When writing annotation
> I like to use normalized coordinates. But, as far as I can tell, the
> /NORMAL (and /DEVICE) keywords are ignored by OPLOT.

> What would be really nice would be if I could write the PSYM characters
> with XYOUTS, so that I could write my annotation with a single line.

I think that the PLOTS procedure will do what you want.
You can also use it to draw linestyles on the legend.

Example:

; If this is a line plot
; Draw linestyle on legend
; Endif else
; Draw symbol on legend
; Endelse

if jsym eq 0 then begin
plots, [xoff+xl,xoff+xr], [ypt,ypt], linestyle=jlin, color=jcol
endif else begin
plots, xoff+xl+xseg*0.22, ypt, psym=jsym, symsiz=sym_size, color=jcol
endelse

[This code uses DATA coordinates; I've never tried NORMAL.]


It would be nice if there were a system routine for drawing legends,
though.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL Widget ID Numbers
Next Topic: IDL + Emacs' shell mode = an IDL 'next-error' elisp function

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

Current Time: Wed Oct 08 19:12:11 PDT 2025

Total time taken to generate the page: 0.00389 seconds