Open szymag opened 7 years ago
"some data (two or three different)"
What kind of data?
Evey plot should be in separate window.
Why?
We want to plot energy and also radius in time (number of iteration).
Evey plot should be in separate window.
Why?
It's not necessary
I've done two solutions: one creating a plot in a different process in real time and the other one, creating a plot after all moves, but, in my opinion, neither of them is good enough and solves this issue.
You can find them on my branches: final-plotting and multiprocessing-plotting.
There are two problems, one for each solution:
time.sleep
in algorithm's process to slow down production of data, but I'm not convinced by it. The other one is to pack data in groups of 50 or even 200 points and plot them each... 1 of 10th of second.I'd go for the second solution, maybe with dynamic time.sleep
delay or packs of data. What do you think?
Basically, we don't need to see so detailed information. If we plot one element from 100, it will be sufficient. This parameter changes rather slowly so after many steps we should have smooth plots. We can do the same for visualization of motion.
There will be need to plot some data (two or three different) with real time actualization. Evey plot should be in separate window. It will be correlated with polymer position on lattice.