amepproject / amep

The Active Matter Evaluation Package (AMEP) - a Python library for the analysis of particle-based and continuum simulation data of soft and active matter systems
https://amepproject.de/
GNU General Public License v3.0
12 stars 2 forks source link

FRQ: frame.plot() shortcut to plot.particles/field() #82

Open kay-ro opened 3 weeks ago

kay-ro commented 3 weeks ago

Proposed new feature or change:

Instead of supplying coordinates and the box_boundary to the amep.plot.particles() or amep.plot.field() function, it would be very useful to have a direct shortcut to plot a single frame. Similar to trajectory.animate(), all the data should be supplied directly to amep.plot.particles/field() instead of having to get the coordinates and others first.

Instead of calling

amep.plot.particles(traj[-1].coords(), traj[-1].box,.... **optional_kwargs_for_plot_details)

it should simply be

traj[-1].plot(**optional_kwargs_for_plot_details)