So fügen Sie unter dem Polarhistogramm eine Beschriftung hinzu

So fügen Sie unter dem Polarhistogramm eine Beschriftung hinzu

Ich möchte unter dem Text des Polarhistogramms einen Text hinzufügen.

Ursprünglich habe ich ein normales Histogramm und kannxlabeleinen Text wie folgt einfügen:

histogram_orientation_of_blobs = histogram(orientation, 'Normalization','probability');
xlabel(['orientation ($^{\circ}$)'],'Interpreter','latex','fontsize', 12)

Wenn ich jedoch

histogram_orientation_of_blobs = polarhistogram(orientation, 'Normalization','probability');
xlabel(['orientation ($^{\circ}$)'],'Interpreter','latex','fontsize', 12)

Ich kann es nicht verstehen. Ich vermute, es liegt daran, dass auf einem Polarhistogramm kein Xlabel vorhanden ist, aber wie füge ich unterhalb des Polarhistogramms eine Beschreibung für dieses Diagramm hinzu?

Antwort1

Hackige, halbmanuelle Lösung:

theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polarplot(theta,rho)
ax = gca;
ax.ThetaAxis.Label.String = 'foo';
ax.ThetaAxis.Label.Rotation = 0;
ax.ThetaAxis.Label.Units = 'normalized';
ax.ThetaAxis.Label.Position = [0.5,-0.06,0];

Code-Ausgabe:

Codeausgabe

verwandte Informationen