[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


legend_string Source code in cafe_legend_string.pro

legend_string

Name
           legend_string
Purpose
           Writes legend text in plot window.
Category
           cafe
SUBCATEGORY:
           legend
Input Parameters
           str      - The string to write.
Optional Input Parameters
           spacing  - The shift in y direction to next line in
                      character sizes. Default is 1.2, i.e. 1
                      character for next line and 0.2 character for
                      inter line space.
           charsize - the character size multiplier. Default is
                      !p.charsize (usually 1).
Keyword Parameters
            tex     - Convert tex strings using TeXtoIDL(). Usefull
                      for mathematican symbols.
                      It is recomended to use this keyword
                      instead of calling textoidl() manually. The
                      latter causes problems when printing into
                      postscript files because the IDL codes for
                      plot fonts (!p.font = -1) and hardware fonts
                      (!p.font = 0) are different.
LEGEND OUTPUT:
           Writes string given as parameter
Side Effects
           Changes plot
Example
               > plot, data+model
               > legend, string[str=Special model]
               -> creates legend with the text "Special model"
Revision History
           $Id: cafe_legend_string.pro,v 1.6 2004/02/06 08:09:23 goehler Exp $

Last modified by pro2html on 2005 January 04 at 16:07 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically