set_slices.m.html CLAWPACK  
 Source file:   set_slices.m
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/matlab
 Converted:   Mon Jan 21 2013 at 20:16:04   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

function set_slices(sdir,slices)

% Internal matlab routine for Clawpack graphics.

ftag = get(gcf,'Tag');

if (~strcmp(ftag,'AMRClawSlicePlot'))
  error('get_slices : Current figure does not contain slice data');

amrplot = get(gcf,'UserData');
slice_handles = amrplot.slices;

idir = findstr(lower(sdir),'xyz');
if (isempty(idir))
  error('set_slices : sdir must be equal to ''x'', ''y'', or ''z''');

slice_handles{idir} = slices;
amrplot.slices = slice_handles;