Home > freetb4matlab > plot > linkprop.m

linkprop

PURPOSE ^

% Links graphics object properties, such that a change in one is

SYNOPSIS ^

function hlink = linkprop (h, prop)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{hlink} =} linkprop (@var{h}, @var{prop})
% Links graphics object properties, such that a change in one is
% propagated to the others.  The properties to link are given as a
% string of cell string array by @var{prop} and the objects containing
% these properties by the handle array @var{h}.
%
% An example of the use of linkprops is
%
% @example
% @group
% x = 0:0.1:10;
% subplot (1, 2, 1);
% h1 = plot (x, sin (x));
% subplot (1, 2, 2);
% h2 = plot (x, cos (x));
% hlink = linkprop ([h1, h2], @{'color','linestyle'@});
% set (h1, 'color', 'green');
% set (h2, 'linestyle', '--');
% @end group
% @end example
%
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003