diff --git a/src/python/espressomd/visualization.py b/src/python/espressomd/visualization.py index e74e6b4c82..1a2b993a03 100644 --- a/src/python/espressomd/visualization.py +++ b/src/python/espressomd/visualization.py @@ -2887,6 +2887,6 @@ def update_modelview(self): self.modelview = trans.dot(rotate_cam.dot(trans_cam)) - c_xyz = -1 * np.mat(self.modelview[:3, :3]) * \ - np.mat(self.modelview[3, :3]).T + c_xyz = -1 * np.asmatrix(self.modelview[:3, :3]) * \ + np.asmatrix(self.modelview[3, :3]).T self.cam_pos = np.array([c_xyz[0, 0], c_xyz[1, 0], c_xyz[2, 0]])