%% Change Bubble Sizes
% Create a bubble chart with a legend.

x = 1:10;
y = [4 7 10 7 3 6 5 1 9 7];
sz = [5 1 14 6 9 12 15 20 8 2];
bubblechart(x,y,sz);
bubblelegend('Population','Location','northeastoutside')

%
% Get the current range of bubble sizes.

bubblesize

%
% Change the bubble sizes so that they are between 5 and 20 points in diameter. The bubble legend automatically updates to reflect the new bubble sizes.

bubblesize([5 20])

% Copyright 2020 The MathWorks, Inc.