Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rotation]

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

-2
votes
0answers
47 views

Text rotation in 3D is not possible , using rotation function

Question 1 I have a cube I wanted to the corners of the cube but the test was not properly able placed just using coordinate, I wanted to rotate the text, so I tried using rotation it works perfectly ...
1
vote
1answer
74 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
117 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
33 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
161 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
42 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
110 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
43 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
138 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
45 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
197 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
49 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
474 views

Rotating Vectors in space

I have two sets of vectors, ...
1
vote
1answer
116 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
184 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
75 views

Rotating set of line segments to create 3D mesh

I have a set of line segments ...
1
vote
2answers
50 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
52 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
60 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
167 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
85 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 ...
0
votes
0answers
87 views

Graphics 3D manipulation - rotation

I have following cuboid defined in such way: cuboid[center_, dim_] := Cuboid[center - dim/2, center + dim/2] Custom matrix (rotation engine, Z-dependent): ...
3
votes
1answer
76 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
131 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
545 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
44 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
646 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
106 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
57 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
93 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
147 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
308 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
239 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
116 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
534 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
71 views

Perplexing simplification of RotationMatrix

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

Extracting scaling factor and rotation angle from TransformationFunction

I have successfully transformed two 2D data sets (data1, data2) by using ...
0
votes
0answers
36 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: ...
0
votes
0answers
68 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
340 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
148 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
36 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
100 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
298 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: ...
2
votes
2answers
494 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-...
5
votes
1answer
120 views

How to apply geometric transformation and do test for region intersection

Description I want to generate a number of ellipses, rotate each ellipse using random angle, and then test each ellipse if it intersects with any other regions within arbitrary geometry. I can ...
1
vote
2answers
185 views

Reverse an expression in the output?

I have a recurrence relation in output and Mathematica give me in output the reverse order of what I want, for example {-5 (2 n - 7) (3 n - 10) (3 n - 7) , 0,0,(6 n - 19) (6 n - 13), (6 n -7),(...
0
votes
1answer
121 views

a puzzling thing happened to a simple problem on the rotation matrix

I have a simple problem which might be a bit off topic because I'm not sure if it is a problem of my coding or my formulation, but I can't solve it for days, so I decide to ask for some help: I have ...
0
votes
1answer
125 views

Using Rotation Matrix Data Applied to a Cube: Visualization

I've written a program that calculates the rotation matrices of a cube over time. The program outputs the matrices to a data file in the form of a series of Mathematica styled matrices (i.e. {{a11,a12,...