Selaa lähdekoodia

explain update_every

Falko Schindler 4 vuotta sitten
vanhempi
säilyke
4e951a391c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      nicegui/elements/line_plot.py

+ 1 - 0
nicegui/elements/line_plot.py

@@ -11,6 +11,7 @@ class LinePlot(Plot):
 
         :param n: number of data points to begin with
         :param limit: maximum number of datapoints (new ones will push out the oldest)
+        :param update_every: update plot only after pushing new data multiple times to save CPU and bandwidth
         :param close: whether the figure should be closed after exiting the context; set to False if you want to update it later, default is True
         :param kwargs: arguments like `figsize` which should be passed to `pyplot.figure <https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.figure.html>`_
         """