%% Specify Bubble Colors
% Define a set of bubble coordinates as the vectors th and r. Define sz as a vector of bubble sizes. Then create a bubble chart and specify the color as red. By default, the bubbles are partially transparent.

th = 1:10;
r = rand(1,10);
sz = rand(1,10);
polarbubblechart(th,r,sz,'red');

%
% For a custom color, you can specify an RGB triplet or a hexadecimal color code. For example, the hexadecimal color code '#7031BB', specifies a shade of purple.

polarbubblechart(th,r,sz,'#7031BB');

%
% You can also specify a different color for each bubble. For example, specify a vector to select colors from the figure's colormap.

c = 1:10;
polarbubblechart(th,r,sz,c)

% Copyright 2020 The MathWorks, Inc.