|
@@ -42,7 +42,7 @@ See [main.py](https://github.com/zauberzeug/nice_gui/blob/main/main.py) for an e
|
|
|
|
|
|
```python
|
|
|
lines = ui.line_plot(n=2, limit=20).with_legend(['sin', 'cos'], loc='upper center', ncol=2)
|
|
|
-ui.timer(1.0, lambda: lines.push([datetime.now()], [
|
|
|
+ui.timer(0.1, lambda: lines.push([datetime.now()], [
|
|
|
[np.sin(datetime.now().timestamp()) + 0.02 * np.random.randn()],
|
|
|
[np.cos(datetime.now().timestamp()) + 0.02 * np.random.randn()],
|
|
|
]))
|