From 4e070f40bca6b5eb2ccb770a4c8864567cdc68bf Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Thu, 21 Jan 2021 08:48:54 -0800 Subject: [PATCH] Fixed typo --- pyqtgraph/opengl/GLViewWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/opengl/GLViewWidget.py b/pyqtgraph/opengl/GLViewWidget.py index ca60b1cf..2c9bff01 100644 --- a/pyqtgraph/opengl/GLViewWidget.py +++ b/pyqtgraph/opengl/GLViewWidget.py @@ -374,7 +374,7 @@ class GLViewWidget(QtWidgets.QOpenGLWidget): elev = np.radians(self.opts['elevation']) azim = np.radians(self.opts['azimuth']) fov = np.radians(self.opts['fov']) - dist = (self.opts['center'] - self.camerPosition()).length() + dist = (self.opts['center'] - self.cameraPosition()).length() fov_factor = np.tan(fov / 2) * 2 scale_factor = dist * fov_factor / self.width() z = scale_factor * np.cos(elev) * dy