Skip to content
Snippets Groups Projects

Add live_view module to qutil.plotting.

Merged Tobias Hangleiter requested to merge feat/live_data_view into master
Compare and Show latest version
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -1080,9 +1080,10 @@ class BatchedLiveView1D(LiveView1DBase):
Define a function that generates random data. The function will be
pushed to a background thread so that the interpreter is unblocked.
>>> rng = np.random.default_rng()
>>> def produce_data(interval=1e-1):
... import time
... import time # imports for tests in child process
... import numpy as np
... rng = np.random.default_rng()
... t0 = t1 = time.perf_counter()
... while True:
... dt = time.perf_counter() - t1
Loading