Skip to content

Commit 78fb2e8

Browse files
fix plot rendering issue by increasing pyplot.pause() interval time to 0.1 seconds
1 parent b1715c9 commit 78fb2e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packetraven/connections/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class PacketSource(Connection, ABC):
4949
"""
5050

5151
def __init__(self, location: str, callsigns: [str] = None):
52+
if len(callsigns) == 0:
53+
callsigns = None
5254
self.callsigns = callsigns
5355
super().__init__(location)
5456

packetraven/gui/plotting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def update(
104104

105105
axis.legend()
106106

107+
# NOTE: this `pyplot.pause(0.1)` NEEDS to be here, and it NEEDS to be `0.1` seconds;
108+
# otherwise the plot does not render correctly upon update
109+
pyplot.pause(0.1)
110+
107111
@property
108112
def window(self) -> Toplevel:
109113
return self.figure.canvas.manager.window

0 commit comments

Comments
 (0)