From 86da1a17f89ee4d9b7701d4fe3a2863e1177e919 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 18 Jun 2019 01:20:33 +0200 Subject: Experimenting with readability --- src/ui_widgets.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/ui_widgets.py') 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) -- cgit