Plotting a bar graph on a circular axis

8 views (last 30 days)
Could anyone point me in the direction of being able to produce a bar graph on a circular axis like in the picture attached? (Not asking for complete code, just a pointer).

Accepted Answer

John D'Errico
John D'Errico on 4 Jan 2023
Edited: John D'Errico on 4 Jan 2023
Just to make up some data...
n = 100;
theta = linspace(0,2*pi,n);
r = 10 + rand(1,n);
r = [r;r+1+rand(1,n)];
Ok. now I have some data. Just call polar.
polar([theta;theta],r,'-')
  1 Comment
Harrison Chong
Harrison Chong on 5 Jan 2023
Thank you for answering! I guess I was stuck on the fact that I wanted a bar graph, but these lines work just fine.

Sign in to comment.

More Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!