# UAH LTG IDL Library

## IDL Routines from Phillip Bitzer and UAH Lightning Group

summary     class     fields     routine details     file attributes

# graphic__bumpaxis.pro

Plotting

Sometimes, we need to change the position of a graphic (e.g., plot, image, etc.). For example, this is usually needed to put a colorbar next to a contour plot. This routine adds a method to the IDL object Graphic to do so.

## Examples

Create a plot:

 plt = PLOT(/test) 
By default, the right axis is "bumped" in:
 plt.bumpAxis 
But, we can bump any of the axes:
 plt.bumpAxis, Left = 0.1 
Or multiple axes at once:
 plt.bumpAxis, Bottom = 0.1, Right = 0.1 
To increase the size of a plot provide a negative value:
 plt.bumpAxis, Right = -0.1 

## Author information

Author

Phillip M. Bitzer, University of Alabama in Huntsville, pm.bitzer "AT" uah.edu

History

See Git log.

Uses:

None

## Class description for GRAPHIC

### Inheritance

• IDL_OBJECT

Subclasses: mapprojection

## top GRAPHIC::bumpaxis

GRAPHIC::bumpaxis [, Left=numeric] [, Right=numeric] [, Top=numeric] [, Bottom=numeric], Position=Position

"Bump" the axis of a graphic by a given amount (in normalized coordinates). If no keywords are specified, then the right hand axis is bumped in by 0.1. All keywords are defined such that a positive value with bump the axis "in" (i.e, make the plot smaller).

### Keywords

Left in optional type=numeric default=0.0

The amount to shift the left axis to the right.

Right in optional type=numeric default=0.0

The amount to shift the right axis to the left. If no other keywords are set, the this axis will shifted by 0.1. If _any_ other keywords are set, then this axis won't be shifted unless specifically requested.

Top in optional type=numeric default=0.0

The amount to shift the top axis down.

Bottom in optional type=numeric default=0.0

The amount to shift the bottom axis up.

Position

Uses:

None.

## File attributes

 Modification date: Tue Oct 17 17:26:48 2017 Lines: 28 Docformat: rst rst