Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

How to merge / show all agents from all the cores in a single plot #28

Open Alex98156 opened 2 years ago

Alex98156 commented 2 years ago

Hi, me again. im running a simulation via matplot.pyplot.plot lib, but my image shows only the agents on the space in the current rank /bounds per tick. What's needed to show all the agents on the space for all the cores simultaneously per tick and on a single Image file.

Example below - Tick 1

Rank 0 Image img12

Rank 1 Image img13

Wanted: All ranks Image imagen

Thanks for your time Alex

adri4na commented 4 months ago

Did you find a way within the documentation? My solution was to write whatever variable you want to plot (i.e. agents) to a pickle archive (one per rank) and then run another code to plot