# Questions tagged [rotation]

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

116 questions
Filter by
Sorted by
Tagged with
19 views

### how to understand the relative position and orientation of adjacent joints of the manipulator in the demonstration file

I found an interesting demonstration of a manipulator link here, which I'd like to modify to create some figures, but can't figure out how to modify the dimensions. More specifically, in its source ...
48 views

### Spacing of rotated elements (labels) in grid

How can I change the size of a specific subset of cells in a Grid? I'm using the ItemSize parameter for the ones I want to ...
311 views

### Generating Mesh of Rotated Graphics

I have a simple geometry that consists of a few rotated rectangles ...
50 views

### Plot a rotated ellipse displaced from the origin, keeping dimensions constant

I'm trying to plot an ellipse in parametric plot, rotated by some angle and is offset from the origin with respect to the centre. I am almost there, here is my current solution ...
36 views

### Cannot use RotateRight function to move points in plot forward

I have a plot of activity which is matched to degrees of crank angle on the x axis. I want to move the plot forward by 180 degrees in to work to have the peak occuring at the beginning of the cycle,...
85 views

### How to rotate a lattice points about an arbitrary axis

I have hexpoints = Table[{Cos[n Pi/3] + 1, Sin[n Pi/3] + \[Sqrt]3/2}, {n, 6}]; Which gives the fundamental cell to be applied in ...
48 views

### Rotating points on a plane

If we have a pair of coordinates $(x,y)$, let's say pt = {1,2} then we can easily rotate the coordinates, by an angle $\theta$, by using the rotation matrix <...
167 views

### Multiply vectors in a matrix by a matrix

I have a matrix of vectors e.g. mat1 = Table[Table[RandomReal, 2], n, n]; which is actually a matrix of cartesian coordiantes ...
53 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 ...
81 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\...
69 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! ...
222 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. ...
28 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) ...
82 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 ...
175 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: ...
209 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 ...
55 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 ...
217 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 ...
80 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:...
166 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$. ...
255 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 ...
76 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 ...
533 views

### Rotating Vectors in space

I have two sets of vectors, ...
420 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 ...
467 views

### How to plot a rotated ellipse using ParametricPlot?

I'm plotting the von Mises yield surface using CountourPlot and ParametricPlot. With ...
80 views

### Rotating set of line segments to create 3D mesh

I have a set of line segments ...
69 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: ...
74 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 ...
69 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 ...
249 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 ...
156 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 ...
91 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$). ...
183 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,...
1k 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 ...
52 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, ...
738 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 ...
135 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 ...
81 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. ...
102 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 ...
207 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 ...
362 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: ...
349 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. ...
133 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 ...
741 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 ...
77 views

### Perplexing simplification of RotationMatrix

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

### Extracting scaling factor and rotation angle from TransformationFunction

I have successfully transformed two 2D data sets (data1, data2) by using ...
69 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: ...
118 views

### How can I find the collision time of 2 ellipsoids that rotate with infinite speed? [closed]

I have 2 ellipsoids: ...