mtexFigure edit page

a class to handles figures equaly sized axes with the following features

  • nicely resize axes
  • global or individual colorbars *

Description

The calculation of the layout is initiated by the command drawNow. This involves calls to the following functions:

drawNow
  |  |
  V  |
calcTightInset -> compute width of boundary around each axis
     |
     V
updateLayout
     |
     V
calcPartition -> compute partition (nrows, ncols)
     |
     V
calcAxesSize  -> compute axes size

A mtexFigure may have the following children

  • mapPlot -> micronbar
  • sphericalPlot (stored in appdata of axes handle)
  • pfPlot [CS,SS,h]
  • ipdfPlot [CS]
  • MillerPlot [r,SS]

Syntax

newMTEXFigure

Class Properties

parent handle of the parent figure
children handles to all axes
cBarAxis handles to all colorbar axes
innerPlotSpacing
keepAspectRatio
nrows = 1 number of rows
ncols = 1 number of columns
axisWidth width of an individual axis
axisHeight height of an individual axis
cbx = 0 colorbar width
cby = 0 colorbar height
tightInset is added to axisSize
figTightInset is added to figSize
layoutMode 'auto' or 'user'

Dependent Class Properties

currentAxes handle of the current axis
currentId id of te current axis
axesWidth
axesHeight
outerPlotSpacing
dataCursorMenu handle of the data cursor context menu

See also