From 603e1b98bc9e115a6cc66492c15b1b502ae3e480 Mon Sep 17 00:00:00 2001 From: Dennis van Gils <37263907+Dennis-van-Gils@users.noreply.github.com> Date: Thu, 16 Jul 2020 21:13:33 +0200 Subject: [PATCH] Fix line width not being set --- pyqtgraph/graphicsItems/PlotCurveItem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyqtgraph/graphicsItems/PlotCurveItem.py b/pyqtgraph/graphicsItems/PlotCurveItem.py index 1b3197b5..763eeb45 100644 --- a/pyqtgraph/graphicsItems/PlotCurveItem.py +++ b/pyqtgraph/graphicsItems/PlotCurveItem.py @@ -580,6 +580,7 @@ class PlotCurveItem(GraphicsObject): if pen.isCosmetic() and width < 1: width = 1 gl.glPointSize(width) + gl.glLineWidth(width) gl.glEnable(gl.GL_LINE_SMOOTH) gl.glEnable(gl.GL_BLEND) gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA)