Why does MATLAB resize a polar when I rotate it 45°? How can I get the same size when the polar has a 'View' of 0º?
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Marcos Perez
am 4 Jul. 2015
Kommentiert: Sudipta Bhowmick
am 13 Sep. 2020
h=polar(1,1,'*r')
set(gca,'View',[-45 90])
0 Kommentare
Akzeptierte Antwort
Jan
am 4 Jul. 2015
Bearbeitet: Jan
am 4 Jul. 2015
This is the waned behavior of the automatic view angle mode.
h = polar(1,1,'*r')
set(gca, 'CameraViewAngleMode', 'manual', 'CameraTargetMode', 'manual', ...
'CameraPositionMode', 'manual');
for k = linspace(0, pi, 100)
set(gca, 'CameraUpVector', [sin(k), cos(k), 0]);
pause(0.01);
end
By the way: 'View' is an obsolete property for many years now. Do not use it.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!