Open tobidelbruck opened 3 years ago
@tobidelbruck Thanks for the question. You know there's an interface called pause()
on matplotlib https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pause.html. I've tried to think of if it can be integrated into matplotlib4j, but it's not quite easy since matplotlib4j generates a python script and run each time, so it's hard to pass the latest values to a live script asynchronously.
So far only the option I come up with is to use savefig()
interface, and watch the updated image by image viewer. Does the solution work for you?
This package is really handy. I have a question, what is the threading model? My main Swing GUI seems to halt as long as the plot is displayed; is it possible to display a plot and update it while my code is running? I tried to put the call to plt.show() in a separate thread but it didn't seem to help. My code is below.
Inside stats.plot() is the code to plot