summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-06-18 01:20:33 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-06-18 01:20:33 +0200
commit86da1a17f89ee4d9b7701d4fe3a2863e1177e919 (patch)
tree7c8f7a0739af6a8d43d33bcf9015e6b5fed05567 /src
parentbde01fae55eba2d0fd3af9bd10c22336ce0352f3 (diff)
Experimenting with readability
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)