Function: lm_initaxes

CALL:

h = lm_initaxes(HWIN, LAYER)

DESCRIPTION:

Initialize pixel axes for this window. The pixel axes is used by the Modelit Layout manager to position handle graphics objects that normally do not appear outside an axes, like line, text and patch objects.

INPUT:

HWIN any
handle of figure for which pixel axes will be set (defaults to gcf)
LAYER any
Layer number. (Optional, default value: 1)
If needed, multiple axes objects can be created to
enable plotting in different layers. Frames plotted in the
current axes obscure lines and text objects in other layers.

OUTPUT:

h any
handle of pixel axes for layer LAYER

EXAMPLE:

   hax = lm_initaxes;
   h = text(1, 1, 'my text', 'parent', hax);
   lm_linkobj(h, hframe, 'pixelpos', [10 10 20 20]);
 

APPROACH:

   Pixel axes is stored in the application data  ('frameaxis') of the specified figure