Skip to content
Snippets Groups Projects
Commit f6a9b859 authored by Antonio Ragagnin's avatar Antonio Ragagnin :speech_balloon:
Browse files

Update run_pm_dmo_NFW_fixed_timestep.md

parent d194efa1
No related branches found
No related tags found
No related merge requests found
......@@ -86,10 +86,7 @@ with (
fig, ax = plt.subplots(1)
ax.hist2d(p['pos'][:, 0], p['pos'][:, 1], bins=128)
ax.set_aspect('equal')
path = os.path.join(
os.getenv('HW_BUILD', '.'), f'snap{ts.steps}_rank{mpi.rank}.png'
)
fig.savefig(path, bbox_inches='tight', dpi=200)
fig.savefig(f'snap{ts.steps}_rank{mpi.rank}.png', bbox_inches='tight', dpi=200)
plt.close(fig)
print('Simulation finished')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment