Documentation for pp_lib

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

pp_ilegend__define.pro


This object allows adding separate legend boxes to an iTool. Once a new legend box is created, items can be added to it. After there are 2 or more legend boxes, any additional legend items must be added with this object's additem method. See example below.

Examples

Make some plot, with a legend:

iplot,[0,1],name='a',/insert_legend
Make another plot, with its name, but do not add the legend yet (or it would go into the first legend box):
iplot,[0,0],name='b',/over
Now create the second legend box, at location [0,0.5], adding the last plot to it - this must be done at a time when there is a plot object selected (as is the case just after a plot is created):
leg=pp_ilegend([0d0,0.5d0])
Now create another plot, and add it to the second legend box - the item to be added to the legend is the currently selected one:
iplot,[0,-1],name='c',/over leg.additem
The result should look like

Author information

Author

Paulo Penteado (pp.penteado@gmail.com), Mar/2014

Version

20140318

Other file information

Requires:

IDL 8.0

Class description for pp_ilegend

Properties

Properties in pp_ilegend

verbose init

Fields

Fields in pp_ilegend

ITEMS obj_new()
LEG obj_new()
TOOL obj_new()
VERBOSE 0B

Routines

Routines from pp_ilegend__define.pro

result = pp_ilegend::init(loc, verbose=verbose)
pp_ilegend::additem
pp_ilegend__define

Routine details

top source pp_ilegend::init

result = pp_ilegend::init(loc, verbose=verbose)

Parameters

loc

Keywords

verbose

Statistics

Lines:
13 lines
Cyclomatic complexity:
5
Modified cyclomatic complexity:
5

top source pp_ilegend::additem

pp_ilegend::additem

Statistics

Lines:
11 lines
Cyclomatic complexity:
4
Modified cyclomatic complexity:
4

top source pp_ilegend__define

pp_ilegend__define

Statistics

Lines:
4 lines
Cyclomatic complexity:
4
Modified cyclomatic complexity:
4

File attributes

Modification date: Wed Jun 29 22:15:28 2016
Lines: 28
Docformat: rst rst