Skip to content

Commit 1f51542

Browse files
committed
formatting
1 parent 573a2ec commit 1f51542

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/plotting/plot_non_euclidean_paths.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
respective non-Euclidean spaces.
1010
"""
1111

12-
import numpy as np
1312
import matplotlib.pyplot as plt
13+
import numpy as np
14+
1415
from orix.quaternion import Orientation, Rotation
15-
from orix.quaternion.symmetry import Oh, D3
16+
from orix.quaternion.symmetry import D3, Oh
1617
from orix.vector import Vector3d
1718

18-
1919
fig = plt.figure()
2020

2121
# plot a path in homochoric space with no symmetry
@@ -75,7 +75,9 @@
7575

7676
# plot vectors
7777
ax4 = plt.subplot(2, 2, 4, projection="stereographic")
78-
vector_points = Vector3d(np.array([[-1,0,0],[0,1,0.1],[1,0,0.2],[0,-1,0.3],[-1,0,0.4]]))
78+
vector_points = Vector3d(
79+
np.array([[-1, 0, 0], [0, 1, 0.1], [1, 0, 0.2], [0, -1, 0.3], [-1, 0, 0.4]])
80+
)
7981

80-
vector_path = Vector3d.from_path_ends(vector_points,steps = 200)
82+
vector_path = Vector3d.from_path_ends(vector_points, steps=200)
8183
ax4.scatter(vector_path, figure=fig, marker=">", c=np.arange(vector_path.size))

0 commit comments

Comments
 (0)