function hcell_box_add ( box_color ) %% HCELL_BOX_ADD adds a box around the HCELL region. % % Discussion: % % This routine can only ADD graphics to an already existing plot. % So call PLOT first and then this routine. % % The box is normally drawn with the color white ('w'). % In this case, it doesn't actually appear on the screen. % However, it does force MATLAB to make the picture bigger, % giving us space to write some titles. % % Usage: % % hcell_box_add ( box_color ) % % A typical invocation might be % % hcell_box_add ( 'w' ) % % Modified: % % 23 April 2004 % % Author: % % John Burkardt % % Parameters: % % Input, character BOX_COLOR, the color to be used to draw the box. % fprintf ( 1, '\n' ); fprintf ( 1, 'HCELL_BOX_ADD:\n' ); fprintf ( 1, ' Add a bounding box to a plot of the HCELL problem.\n' ); % % Do we have a color? % if ( nargin < 1 ) box_color = 'w' end % % Set the coordinates of the invisible bounding box that % allows us to display the file name within the plot area. % box_x = [ -5.00, 110.00, 110.00, -5.00, -5.00 ]; box_y = [ -5.00, -5.00, 21.00, 21.00, -5.00 ]; line ( box_x, box_y, 'color', box_color ) fprintf ( 1, '\n' ); fprintf ( 1, 'HCELL_BOX_ADD:\n' ); fprintf ( 1, ' Normal end of execution.\n' );