How to change polar histogram plot border thickness?

4 Ansichten (letzte 30 Tage)
Oggie Golub
Oggie Golub am 25 Okt. 2016
Bearbeitet: Oggie Golub am 25 Okt. 2016
I am trying to change the thickness of the arc that defines the border of a polar histogram plot. I can successfully change the thickness of the ticks using LineWidth, but I am not finding a command that allows me to alter the thickness of the border arc.
Is it possible?
Alternatively, I am also trying to draw a new arc to superimpose over the existing one, but am failing to draw the arc from 0° to 90°. It always goes from 0° to the center instead.
d=linspace(0,pi/2);
t=cos(d);
r=sin(d);
hold on;
polarplot(t,r,'LineWidth',4)
hold off;
How do I change the arc so that it goes from 0° to 90°?
I've tried setting r=1, which seems like it should fix it, but then nothing shows up at all. What am I missing?

Akzeptierte Antwort

Oggie Golub
Oggie Golub am 25 Okt. 2016
Bearbeitet: Oggie Golub am 25 Okt. 2016
I no longer need help with this, I just figured it out on my own.
The reason r=1 didn't work was because "the inputs must be vectors with equal length or matrices with equal size." So I had 100 angles from 0,pi/2 but only 1 radius.
For anyone who may be caught in a similar situation, the following code fixed the issue.
t = linspace(0,pi/2,100);
r = ones(100,1);
hold on;
polarplot(t,r,'LineWidth',4);
hold off;
However, I would still like to know if it's possible the simply change the thickness of the original border. I would much prefer that option as opposed to adding another element to the plot.

Weitere Antworten (0)

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by