From c2162ad78c753956498889238a313e844b9cf602 Mon Sep 17 00:00:00 2001
From: Benjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
Date: Thu, 7 Jun 2018 08:51:12 +0200
Subject: [PATCH] =?UTF-8?q?fixed=20issue=20#64=20"Plot=20Style=20Line=20Si?=
 =?UTF-8?q?ze=20(1pt=20already=20huge)".=20Solution=20was=EF=BB=BFQPen::se?=
 =?UTF-8?q?tCosmetic(True)=20for=20using=20scale-independent=20line-width?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 timeseriesviewer/plotstyling.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/timeseriesviewer/plotstyling.py b/timeseriesviewer/plotstyling.py
index 74000224..86129066 100644
--- a/timeseriesviewer/plotstyling.py
+++ b/timeseriesviewer/plotstyling.py
@@ -76,13 +76,16 @@ class PlotStyle(QObject):
         self.backgroundColor = Qt.black
 
         self.markerPen = QPen()
+        self.markerPen.setCosmetic(True)
         self.markerPen.setStyle(Qt.NoPen)
         self.markerPen.setColor(Qt.white)
+        self.markerPen.setWidthF(0)
 
 
         self.linePen = QPen()
+        self.linePen.setCosmetic(True)
         self.linePen.setStyle(Qt.NoPen)
-        self.linePen.setWidth(0)
+        self.linePen.setWidthF(0)
         self.linePen.setColor(QColor(74, 75, 75))
 
         self.mIsVisible = True
-- 
GitLab