%% Add a Bubble Legend
% Define a data set that shows the incoming air traffic at a certain airport over a certain period of time.
% Define theta as a vector of angles of approach for the incoming planes.
% Define altitude as a vector of altitudes.
% Define planesize as a vector of plane sizes, measured in the number of passengers.
% Then display the data in a bubble chart with a bubble legend that shows the relationship between the bubble sizes and the number of passengers on the planes.

theta = repmat([0 pi/2 7*pi/6],1,4) + 0.25*randn(1,12);
altitude = randi([13000 43000],1,12);
planesize = randi([75 500],[1 12]);
polarbubblechart(theta,altitude,planesize)
bubblelegend('Number of Passengers','Location','eastoutside')

% Copyright 2020 The MathWorks, Inc.