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
0
votes
0answers
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 ...
1
vote
1answer
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 ...
10
votes
2answers
312 views

Generating Mesh of Rotated Graphics

I have a simple geometry that consists of a few rotated rectangles ...
1
vote
2answers
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 ...
1
vote
0answers
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,...
2
votes
3answers
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 ...
1
vote
2answers
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 <...
7
votes
2answers
167 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
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 ...
1
vote
1answer
82 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
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! ...
1
vote
1answer
229 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
30 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
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 ...
3
votes
1answer
178 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: ...
2
votes
1answer
210 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
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 ...
1
vote
1answer
220 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 ...
4
votes
1answer
84 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
168 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$. ...
3
votes
1answer
257 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
77 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
535 views

Rotating Vectors in space

I have two sets of vectors, ...
1
vote
1answer
429 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
476 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
80 views

Rotating set of line segments to create 3D mesh

I have a set of line segments ...
1
vote
2answers
70 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
75 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
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 ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
3
votes
1answer
92 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
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,...
3
votes
4answers
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 ...
1
vote
0answers
54 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, ...
17
votes
2answers
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 ...
0
votes
1answer
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 ...
1
vote
0answers
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. ...
2
votes
1answer
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 ...
1
vote
2answers
211 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
363 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
354 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
134 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
747 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
77 views

Perplexing simplification of RotationMatrix

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

Extracting scaling factor and rotation angle from TransformationFunction

I have successfully transformed two 2D data sets (data1, data2) by using ...
0
votes
0answers
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: ...
-9
votes
1answer
118 views
0
votes
0answers
78 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
536 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 ...