Questions tagged [rotation]

Questions regarding built-in methods to rotate objects and how to perform them: Rotate, RotationTransform, ImageRotate, RotationMatrix etc.

Filter by
Sorted by
Tagged with
7
votes
2answers
160 views

Multiply vectors in a matrix by a matrix

I have a matrix of vectors e.g. mat1 = Table[Table[RandomReal[1], 2], n, n]; which is actually a matrix of cartesian coordiantes ...
0
votes
1answer
47 views

How do I rotate a plot of a system of functions?

I created a plot of a system of functions. I don't need any explicit formals, I just want to export a graphic that shows what it "looks like" if I rotate my plot by exactly a specified angle, but I ...
1
vote
1answer
70 views

How to animate/visualize rotations of shapes?

Can I use Mathematica to create visualized rotation of a shape? Specifically, I'm trying to draw a rectangle $R$ with vertices where $r>0$ and $\theta\in(0,\pi/4$): $$ \\ R= \begin{pmatrix} re^{i\...
2
votes
1answer
59 views

How to shift function (like RotateRight) in the y direction?

I'd like to shift my graph so the periodogram is centered. I was able to rotate the original using Rotate Right, but now I can't shift the graph in the y dimension. Thank you for your help! ...
1
vote
0answers
88 views

Converting quaternion to Euler Angles

I am using quaternions to describe 3D rotations which parametrized by Euler angles, and as a preliminary task I am trying to implement conversion routines that go between Euler angles and quaternions. ...
0
votes
0answers
26 views

Rotations of spheres and circles

I had this piece of program working before, and can't make it do the dynamic thing anymore. Can you help me put it back on track. Purpose is to show points moving along when the spheres (little ones) ...
1
vote
1answer
76 views

Problem with MousePosition after rotating a graphic

i've been doing a dynamic matrix plot using MousePosition but i need to rotate the plot 45°. but when i do that the MousePosition lose coordinates. Any idea of how to do the rotation keeping ...
3
votes
1answer
148 views

Solving for Euler Angles

I would like to determine Euler angles according to the following example. My example: I have the three vectors in an original set of axes: ...
0
votes
0answers
39 views

Simplifying Wigner sums

Rotations of second rank tensors are common in quantum mechanics and Nuclear Magnetic Resonance theory. The sums can often be simplified into simplified real components, but when many sums exist, ...
2
votes
1answer
186 views

Graph a cylinder moving in 3D

I need to generate a graph (series of stills) or animation of a cylinder (or other shape) moving in 3D. The object moves in projectile motion and rotates about two different axes. Now, I have the ...
1
vote
1answer
47 views

How to rotate TickLabels in DateListPlot

I tried to rotate my TickLabels with another contribution from this website. I load the package CustomTicks.m ...
1
vote
1answer
148 views

Get frequency axis in Fourier transform (and save them)

I am trying to get the Fourier transform of a light-curve (with an even number of points, 300, and equally spaced in time, 6.9 seconds) and my problem is to get the frequency on the x-axis. I can ...
3
votes
1answer
54 views

Adjusted Bar chart label rotation

I'm currently working on a bar chart diagram, where the vertical axis starts from 0.9. I managed to adjust the labels, but I don't know how to rotate it to make it readable. The code is the following:...
1
vote
1answer
152 views

Solid of revolution — shell method [closed]

I'm trying to plot the solid of revolution obtained by rotating the region enclosed by $y=x^{1/2}$ and $y=0$, with $x$ going from $0$ to $4$, about the line $x=5$. ...
0
votes
0answers
48 views

How to use Absolute Coordinates to define Graphics3D Rotation Compositions

When composing multiple rotations of an object inside Graphics3D, each rotation is applied in that object's local coordinate system. For example in this code (modified from Is it possible to ...
3
votes
1answer
220 views

Finding optimal rotation matrix

I have vectors E1 = {22.607, 3.495, -30.795}; and R1 = { 4.74061, 21.7549, 30.6501};. This vectors are conneted by a 3D rotation ...
1
vote
1answer
62 views

Rotation by Euler Angles using SphericalPlot3D

I am new to Mathematica and I am trying to create a small animation using SphericalPlot3D. Essentially I have a 3D figure defined in ...
7
votes
3answers
498 views

Rotating Vectors in space

I have two sets of vectors, ...
1
vote
1answer
184 views

How to find the parametric equation of the von Mises yield function?

The von Mises yield function is given by: $ \Phi(\sigma_1,\sigma_2)=\sqrt{\sigma_{1}^{2} +\sigma_{2}^{2}-\sigma_{1} \sigma_{2}} - \sigma_y $ were $\sigma_1$ and $\sigma_2$ are the principal ...
2
votes
1answer
260 views

How to plot a rotated ellipse using `ParametricPlot`?

I'm plotting the von Mises yield surface using CountourPlot and ParametricPlot. With ...
2
votes
1answer
78 views

Rotating set of line segments to create 3D mesh

I have a set of line segments ...
1
vote
2answers
60 views

RotateLabel is not working in Plot

I want to generate a plot with the label of the vertical axis rotated by 90 degree in order to save space. I cannot make that work with the option RotateLabel. Here is a MWE: ...
3
votes
1answer
62 views

Rotate Points on ContourPlot and ListPointPlot3D

So I have some minima of a function which I found by brute force, whose xy coordinates are given below in coord and their value is given in ...
1
vote
2answers
64 views

Rotating two vector randomly keeping the relative orientation between them unchanged

Let's consider we have two vectors $A(x_1, y_1, z_1)$ and $B(x_2, y_2, z_2)$. Now want to rotate these two vectors in $3D$ space (such that the relative orientation between them is always same). How ...
0
votes
1answer
210 views

Sphere Point Picking in Cartesian coordinates [closed]

I have a vector $\vec{A}(x, y, z)$. Now I want to rotate the vector randomly (x by ϕ, y by ...
0
votes
1answer
119 views

plot axis rotate [duplicate]

im trying to plot a function in specific range where the function is negative. this is what i get: Plot[(f[x], {x, -10, 10}, PlotRange -> Full] how can i ...
3
votes
1answer
85 views

How to get a list of 3D coordinates using point and rotation

I have one point: p1={82,80,0} I want to rotate it around the Y axis. The start time is 0 seconds ($0s$) and the end time is 5 seconds ($5s$). ...
0
votes
1answer
153 views

Calculation of the desired Rotation Matrix

Here I have three orthogonal vectors, {-1,1,-1} {1,1,0} {-1,1,2}, and I want to obtain the rotation matrix which can transform these three vectors into {1,0,0} {0,1,0} {0,0,1}, respectively. Therefore,...
3
votes
4answers
773 views

How to get rotate angle θ of rotated ellipse?

I have ellipse function as below: −3.06274 x^2 − y^2 + 1192.22 x + 152.71 y + 1.829648 x y − 196494 == 0 This ellipse looks like: How to get the rotate ...
1
vote
0answers
51 views

Wigner-D in MMA

Can some nice MMA fellow explain to me why buit-in Wigner-D function is defined as $D_{mm'}^{J} = e^{i(\phi m+ \gamma m')} d_{mm'}^{j}(\theta)$ against the convention, used by most people on Earth, ...
14
votes
2answers
666 views

How to speed up `RotationMatrix`?

I frequently run into the situation that I have to apply RotationMatrix to a huge bunch of 3D vectors and angles for numerical computations. On one hand, the syntax ...
0
votes
1answer
127 views

Rotate a RegionPlot3D

I plotted a bunch of regions using RegionPlot3D, and would need to rotate them around an a vector {0,0,1} anchored at point {5,5,5}. I tried RotationTransform, Transformed Region, and changing ...
1
vote
0answers
70 views

Problem Exporting rotated MaTeX with a transparency

I'm trying to save an Graphics with rotated MaTeX and a transparency. My code is below. ...
2
votes
1answer
97 views

How to rotate a graph with a locator?

Manipulate[ Graphics[Rotate[Line[{{0, 0}, p}], \[Theta], {0, 0}], PlotRange -> 2], {{p, {1, 1}}, Locator}, {\[Theta], 0, 2 \[Pi]}] I want to rotate a graph ...
1
vote
2answers
178 views

Define a Givens rotation (or Jacobi rotation) matrix of size M

I want to realize a function R with parameters a, b, w which creates an M × M Givens ...
2
votes
2answers
338 views

Manipulate - performance during 3D rotation

Here is a simple demo code, with which I thought I could rotate a 3D point set around the different axes: ...
5
votes
1answer
292 views

Euler matrices in Mathematica? [duplicate]

I recently got confused by the Euler matrices (the rotation matrices about the Euler angles) given by Mathematica. They seem inconsistent with the reference I found. So I am referring to Arfken, 7th. ...
0
votes
1answer
121 views

Rotate one plot and add legend tp another [closed]

I have one function and some data that I want to plot together. I have two questions. How can I have a legend for dataMC list plot? How can I rotate the ...
0
votes
1answer
625 views

How to rotate plot tick labels [duplicate]

I am trying to plot a set of data using ListLogLogPlot. x = {4.*^14, 4.*^15, 4.*^16}; y = {1170, 243, 50}; data = Partition[Riffle[x, y], 2]; However, when I go ...
2
votes
1answer
72 views

Perplexing simplification of RotationMatrix

The result of FullSimplify[RotationMatrix[θ, {Cos[ψ], Sin[ψ], 0}], ψ > 0].{0, 0, 1} in Mathematica 11 is ...
1
vote
1answer
156 views

Extracting scaling factor and rotation angle from TransformationFunction

I have successfully transformed two 2D data sets (data1, data2) by using ...
0
votes
0answers
40 views

Could not combine error [duplicate]

I used below code to combine two objects, but there is an error: Could not combine the graphics objects in Show The code is: ...
-9
votes
1answer
114 views
0
votes
0answers
74 views

How to Rotate a 3DPlot with a dynamic controller and export in .gif or .avi? [duplicate]

I would like to have the following 3DPlot to Rotate around a vertical axis defined within the ...
2
votes
1answer
411 views

How to rotate around z-axis a simple 3DPlot? [duplicate]

I am trying to Rotate a 3DPlot around the z-axis (in the horizontal plane). This is what I believed would work, but I think I misunderstood how Rotate works. When I ...
2
votes
2answers
160 views

Open pyramid flower-like by rotating its faces

I'm trying to animate a pyramid (with any base) opening its lateral faces like a flower. I found the best way to this to be the Rotate function. The problem is, I have no clue how it works. I have ...
1
vote
0answers
37 views

Rotating a 4th-dimension Array of symbolic variables [duplicate]

I am looking to rotate a 4th dimension array C[i,j,k,l] using a rotation matrix Q[i,j]. I already know how this is done in 3x3 matrices (Q.A.Transpose[Q]) but I am having a hard time doing it for a ...
0
votes
0answers
110 views

Changing an animation variable with manipulate and button

I need Manipulate to add buttons. And I think I need Dynamic somewhere. I tried searching in the stackexchange for anything similar because I feel that surely someone has also this in mind. Many of ...
3
votes
1answer
330 views

How to rotate labels in clustered bar charts

I can label groups in a bar chart but when trying to rotate the column labels I get unexpected results. This works: ...
3
votes
2answers
519 views

How to rotate 3D ellipsoid with built-in functions?

I have 3D graphics with an ellipsoid and three arrows which represent its axes. However, not all arrows are inside the ellipsoid; two are outside. How can I rotate the ellipsoid with the use of built-...