Documentation for pp_lib

Generated by IDLdoc

./

pp_colorbar_range.pro


top source pp_colorbar_range

pp_colorbar_range, range [, np] [, format=format] [, vnumber=vnumber] [, id=id] [, _ref_extra=_ref_extra]

Changes the range of values spanned by the labels in an existing colorbar.

Parameters

range in required

Two-element array with the range to be spanned by the colorbar.

np in optional

Number of tick marks to use.

Keywords

format in optional default=(F5.1)

Format specification to use when making the new tick labels.

vnumber in optional default=1

View number (panel number) in the itool where the text should be placed.

id in out optional

Itool id to use. If not specified, the current is used and its id is returned.

_ref_extra in out optional

Any other properties of the colorbar to set (IDLitVisColorbar properties).

Examples

Make a sample plot:

iplot,findgen(10),vert_colors=bindgen(10)*255/(9.),/insert_colorbar pp_colorbar_range,[0.,5.],font_size=12.

Author information

Author:

Paulo Penteado (pp.penteado@gmail.com), Aug/2009

Other attributes

Uses:

Statistics

Lines:
29 lines
McCabe complexity:
5

File attributes

Modification date: Thu Jan 31 16:29:45 2013
Lines: 60
Docformat: rst rst