>  Docs Center  >  Libraries  >  Coyote  >  CGLEGENDITEM__DEFINE
Libraries

CGLEGENDITEM__DEFINE

CGLEGENDITEM__DEFINE
  The purpose of this program is to create a simple legend object that can be drawn on
  a data plot. Perhaps later such objects can be collected into a more sophisticated
  "legend" object.
       

Categories


    Graphics
   

Examples


    A plot with a simple legend::
      cgDisplay, 800, 450
      legendItem1 = Obj_New('cgLegendItem', SymColor='red7', PSym=6, Symsize=1.5, $
          Location=[0.825, 0.875], Title='May 27', /Hardware, Length=0.05)
      legendItem2 = Obj_New('cgLegendItem', SymColor='blu7', PSym=15, Symsize=1.5, $
          Location=[0.825, 0.835], Title='June 27', /Hardware, Length=0.05)
      cgPlot, cgDemoData(17), PSym=-6, SymColor='red7', Position=[0.15, 0.15, 0.8, 0.9], $
          Legends=[legendItem1,legendItem2], Label='First Experiment'
      cgOPlot, cgDemoData(17), PSym=-15, SymColor='blu7'
      Obj_Destroy, [legendItem1,legendItem2]
         

Author


    FANNING SOFTWARE CONSULTING::
      David W. Fanning
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com

Copyright


    Copyright (c) 2012, Fanning Software Consulting, Inc.
   

History


    Change History::
        Written 18 July 2012. DWF.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us