From d2cd31b91ea634706438ff566531d79e9f90ac62 Mon Sep 17 00:00:00 2001 From: semuadmin <28569967+semuadmin@users.noreply.github.com> Date: Sun, 3 Nov 2024 11:30:53 +0000 Subject: [PATCH] enhance scatterplot widget --- .vscode/settings.json | 2 +- RELEASE_NOTES.md | 6 ++++++ pyproject.toml | 2 +- src/pygpsclient/_version.py | 2 +- src/pygpsclient/scatter_frame.py | 16 +++++++++------- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b67e69bc..f28e087f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,6 @@ "editor.formatOnSave": true, "modulename": "pygpsclient", "distname": "pygpsclient", - "moduleversion": "1.4.25", + "moduleversion": "1.4.26", "python.defaultInterpreterPath": "python3", } \ No newline at end of file diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index accd01db..08e58c84 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,11 @@ # PyGPSClient Release Notes +### RELEASE 1.4.26 + +ENHANCEMENTS: + +1. Enhance scatterplot widget dynamic/fixed display options. + ### RELEASE 1.4.25 ENHANCEMENTS: diff --git a/pyproject.toml b/pyproject.toml index fd7811e4..bb8208ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "pygpsclient" authors = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }] maintainers = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }] description = "GNSS Diagnostic and UBX Configuration GUI Application" -version = "1.4.25" +version = "1.4.26" license = { file = "LICENSE" } keywords = [ "PyGPSClient", diff --git a/src/pygpsclient/_version.py b/src/pygpsclient/_version.py index a8087d0a..6832980e 100644 --- a/src/pygpsclient/_version.py +++ b/src/pygpsclient/_version.py @@ -8,4 +8,4 @@ :license: BSD 3-Clause """ -__version__ = "1.4.25" +__version__ = "1.4.26" diff --git a/src/pygpsclient/scatter_frame.py b/src/pygpsclient/scatter_frame.py index 78ffa937..7c385df6 100644 --- a/src/pygpsclient/scatter_frame.py +++ b/src/pygpsclient/scatter_frame.py @@ -324,15 +324,17 @@ def redraw(self): return middle = self._ave_pos() - if self.center.get() == CTRFIX: - try: - middle = Point(float(self.reflat.get()), float(self.reflon.get())) - except ValueError: - self.center.set(CTRDYN) + fixed = None + try: + fixed = Point(float(self.reflat.get()), float(self.reflon.get())) + if self.center.get() == CTRFIX: + middle = fixed + except ValueError: + self.center.set(CTRDYN) for pnt in self.points: self.draw_point(middle, pnt) - if self.center.get() == CTRFIX: - self.draw_point(middle, middle, FIXCOL) + if fixed is not None: + self.draw_point(middle, fixed, FIXCOL) def update_frame(self): """