Re: /NORM with OPLOT and other thoughts [message #422] |
Tue, 18 August 1992 11:08 |
snoopy
Messages: 6 Registered: March 1992
|
Junior Member |
|
|
In article <16AUG199217070886@stars.gsfc.nasa.gov> landsman@stars.gsfc.nasa.gov (Wayne Landsman (301)-286-3625) writes:
> with XYOUTS, so that I could write my annotation with a single line. I can
> do this with some of the PSYM characters (e.g. the plus sign PSYM = 1)
> IDL> xyouts, 0.5, 0.7, '(+) Model 1', /NORM
> but, for example, the diamond (PSYM=4) cannot be written with XYOUTS.
Have you tried using the symbol character set (Font 9, Math and
Special) with the xyouts procedure? I think the letter V maps
to a diamond symbol in this character set. The xyouts command
line could then look somethink like:
IDL> xyouts, 0.5, 0.7, '(!9V!3) Model 1', /NORM
Where the !9 shits output character set to Math and Special, and
since V is mapped to a diamond, a diamond symbol is drawn. Subse-
quently, the !3 changes the output character set back to Simplex
Roman font (which is the default). The output will appear as your
example above, but the + sybol will instead be replace by a dia-
mond.
-rv
(email: ercrav@vegas1.las.epa.gov)
|
|
|
Re: /NORM with OPLOT and other thoughts [message #425 is a reply to message #422] |
Mon, 17 August 1992 04:17  |
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.
|
|
|