szymag / polymer_simulation

0 stars 0 forks source link

Plot data with real time actualization #2

Open szymag opened 7 years ago

szymag commented 7 years ago

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.

hryniuk commented 7 years ago

"some data (two or three different)"

What kind of data?

Evey plot should be in separate window.

Why?

szymag commented 7 years ago

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

hryniuk commented 7 years ago

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:

I'd go for the second solution, maybe with dynamic time.sleep delay or packs of data. What do you think?

szymag commented 7 years ago

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.