summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui_widgets.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui_widgets.py b/src/ui_widgets.py
index 93096ff..867764d 100644
--- a/src/ui_widgets.py
+++ b/src/ui_widgets.py
@@ -242,12 +242,12 @@ class PoincareWidget(gl.GLViewWidget):
self.addItem(zgrid)
axis = gl.GLAxisItem()
- axis.scale(3, 3, 3)
+ axis.scale(0.2, 0.2, 0.2)
self.addItem(axis)
sphere = gl.GLMeshItem(
meshdata=gl.MeshData.sphere(200, 200),
- color=(0.5, 0.5, 0.5, 0.5), glOptions="translucent")
+ color=(0.5, 0.5, 0.5, 0.5))#, glOptions="additive")
sphere.scale(0.995, 0.995, 0.955) # depth testing fuckery
self.addItem(sphere)
@@ -257,9 +257,7 @@ class PoincareWidget(gl.GLViewWidget):
def make_arc(state, element, N=50):
P = scipy.linalg.fractional_matrix_power(element.matrix(), 1 / N)
- points = np.array([
- 1.5 * phys.jones_to_stokes(state)[1:, 0],
- phys.jones_to_stokes(state)[1:, 0]])
+ points = np.array([phys.jones_to_stokes(state)[1:, 0]])
for i in range(1, N + 1):
M = np.linalg.matrix_power(P, i)