Code covered by the BSD License  

Highlights from
addaxis

image thumbnail

addaxis

by

 

12 Nov 2005 (Updated )

Add multiple y-axes to plots. zoomable with zoom modification.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

setaddaxisdata(axishandle,data,flag);
function setaddaxisdata(axishandle,data,flag);
%  setaddaxisdata(axishandle,data,flag)
%
%  internal function for addaxis to update the added axes handles and plot 
%  handles, or to save the original figure position.
  
  if nargin<3, flag = 'axisdata'; end;
  
  aad = getappdata(axishandle,'addaxis_data');
  switch flag
   case 'axisdata'
    aad.axisdata = data;
   case 'resetinfo'
    aad.resetinfo = data;
   otherwise
  end
  
  setappdata(axishandle,'addaxis_data',aad);
  

Contact us