From ae8fb25d3fcaf914e5ea8ce9c4c76b9ae462baaf Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 26 Jul 2019 12:29:10 +0300 Subject: [PATCH] Show plot marker if there's only one data point --- gui/graphFrame/frame.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/graphFrame/frame.py b/gui/graphFrame/frame.py index 63c0f1a76..13fc04fdf 100644 --- a/gui/graphFrame/frame.py +++ b/gui/graphFrame/frame.py @@ -235,7 +235,11 @@ class GraphFrame(wx.Frame): elif max_y_this is not None: max_y = max(max_y, max_y_this) - self.subplot.plot(xs, ys) + if len(xs) == 1 and len(ys) == 1: + self.subplot.plot(xs, ys, '.') + else: + self.subplot.plot(xs, ys) + if target is None: legend.append(self.getObjName(fit)) else: