www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/TurnOffBoxOutlineForSpecificAxesExample.m

    %% Turn Off Box Outline for Specific Axes
% Create a figure with two subplots and return the axes objects. Plot a
% line in each subplot. Turn off the display of the box outline around the
% axes for the lower subplot.

% Copyright 2015 The MathWorks, Inc.


ax1 = subplot(2,1,1);
plot(1:10)

ax2 = subplot(2,1,2);
plot(1:10)
box(ax2,'off')