soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
453 stars 132 forks source link

Fix plot_traj(colorby='frame') for intermittent particles. #777

Open T0T0R opened 2 weeks ago

T0T0R commented 2 weeks ago

This fix was suggested here: https://github.com/soft-matter/trackpy/issues/177#issuecomment-1059550177 but unfortunately, not included in a pull request.

Here is an example with the viridis cmap:

plt.figure()
tp.plot_traj(t2, colorby='frame', cmap='viridis');

02

And after the fix taking into account appearing and disappearing particles:

01