./
pp_ilegendedit.pro
This procedure allows editing some properties of an iTool legend that are not easiy accessible programatically. See example below.
At this time, only hiding/unhiding the legend box is implemented.
Examples
Make some plot, with a legend, then hide its box:
iplot,[0,1],name='a',/insert_legend
pp_ilegendedit,/hidebox
pp_ilegendedit,hidebox=0
By defaut, pp_ilegendedit will act over every legend on thw current iTool. To limit its action to a subset of the legends, use the optional argument specifying which legend(s) to edit, a a scalar (edit one legend, identified by that index), or an array, where each element is the index of one legend to edit. Legend indexes start at 0:
iplot,[0,1],name='a',/insert_legend
iplot,[0,0],name='b',/over
leg=pp_ilegend([0d0,0.5d0])
pp_ilegendedit,1,/hidebox=; will act only on the second legend
Author information
- Author
Paulo Penteado (pp.penteado@gmail.com), Mar/2014
- Version
20140318
Other file information
- Requires:
IDL 8.0
Class description for pp_ilegendeditor
Fields
Fields in pp_ilegendeditor
- LEG obj_new()
- TOOL obj_new()
Routines
Routines from pp_ilegendedit.pro
Routine details
top source pp_ilegendeditor::init
result = pp_ilegendeditor::init()
Statistics
Lines: | 11 lines |
Cyclomatic complexity: | 4 |
Modified cyclomatic complexity: | 4 |
top source pp_ilegendeditor::changeproperty
pp_ilegendeditor::changeproperty, legend, hidebox=hidebox
Parameters
- legend
Keywords
- hidebox
Statistics
Lines: | 11 lines |
Cyclomatic complexity: | 5 |
Modified cyclomatic complexity: | 5 |
top source pp_ilegendeditor__define
pp_ilegendeditor__define
Statistics
Lines: | 4 lines |
Cyclomatic complexity: | 2 |
Modified cyclomatic complexity: | 2 |
top source pp_ilegendedit
pp_ilegendedit, legend, _ref_extra=_ref_extra
Parameters
- legend
Keywords
- _ref_extra
Statistics
Lines: | 5 lines |
Cyclomatic complexity: | 1 |
Modified cyclomatic complexity: | 1 |
File attributes
Modification date: | Wed Jun 29 22:15:28 2016 |
Lines: | 31 |
Docformat: | rst rst |