Azzera filtri
Azzera filtri

I'm trying to rotate a plot before graphing it

3 visualizzazioni (ultimi 30 giorni)
Rick Giovanini
Rick Giovanini il 11 Gen 2018
Risposto: Walter Roberson il 11 Gen 2018
Hello, I'm trying to rotate plot information(I was doing this before with handles) without graphing it. This is because this has to do with animations, and other things being animated on this same plot. I need to get this shape to rotate before plotting it, because running it in time will not work well if it is plotted, even for a short time, and then rotated. I need to do this with handles because I don't want a new figure, nor do I want this shape to be overwritten while I'm graphing it.
  1 Commento
SRT HellKitty
SRT HellKitty il 11 Gen 2018
Can you use camroll()? you can set the plot invisible while you do this;
set(gcf,'Visible','off') %set invisble
camroll(gca,20) %rotate 20*
set(gcf,'visible','on') %set visible

Accedi per commentare.

Risposte (1)

Walter Roberson
Walter Roberson il 11 Gen 2018
If you want to rotate part of the contents of the plot (rather than wanting to rotate the plotting frame itself) then I suggest parenting the graphic to a hgtransform and use hgmaketform to create the appropriate rotation matrix. See https://www.mathworks.com/help/matlab/ref/hgtransform.html

Categorie

Scopri di più su Animation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by