%% Plot Table Data With Custom Colors
% You can plot data from a table and customize the colors by specifying the cvar argument when you call bubblechart.
% For example, create a table with four variables of random numbers, and plot the X and Y variables. Vary the bubble sizes according to the Sz variable, and vary the colors according to the Colors variable.

tbl = table(randn(15,1)-10,randn(15,1)+10,rand(15,1),rand(15,1), ...
  'VariableNames',{'X','Y','Sz','Colors'});

bubblechart(tbl,'X','Y','Sz','Colors');

% Copyright 2020 The MathWorks, Inc.