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

    %% Set Transparency for All Graphics Objects in Axes
% Create a bar chart and a scatter chart. Set the face transparency for
% both the bar series and scatter series object to |0.5|.

% Copyright 2015 The MathWorks, Inc.


bar(1:10)
hold on
scatter(10*rand(10,1),10*rand(10,1),'filled','SizeData',200)
hold off
alpha(.5)