Closed FilMarini closed 4 months ago
Try refreshing the actual PlotextPlot widget
def update_plotdata(self) -> None:
plt_widget = self.query_one(PlotextPlot)
self.plt.clear_data()
self.y = [x + 1 for x in self.y]
self.plt.scatter(self.y)
plt_widget.refresh()
Alternativly you can subclass PlotextPlot, see this example
Refreshing the PlotextPlot widget works.
Thanks!
Hi, I wanted to update the plot on regular time intervals.
This is what I've tried:
The plot though does not update, keeping the plot for the
self.y = [1,2,3,4,5,6,7,8,9]
list. I've tried in many other ways, but everything turned out to be useless in updating the plot.Is there a way to do this?
Running