Skip to content

Commit

Permalink
Merge pull request #163 from semuconsulting/1.4.26
Browse files Browse the repository at this point in the history
Enhance scatterplot widget
  • Loading branch information
semuadmin authored Nov 3, 2024
2 parents fe753da + d2cd31b commit a2c0149
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"editor.formatOnSave": true,
"modulename": "pygpsclient",
"distname": "pygpsclient",
"moduleversion": "1.4.25",
"moduleversion": "1.4.26",
"python.defaultInterpreterPath": "python3",
}
6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/pygpsclient/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
:license: BSD 3-Clause
"""

__version__ = "1.4.25"
__version__ = "1.4.26"
16 changes: 9 additions & 7 deletions src/pygpsclient/scatter_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit a2c0149

Please sign in to comment.