glotzerlab / plato

Efficient visualization of particle data supporting several rendering engines.
https://plato-draw.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Quality-of-life improvements #50

Closed klarh closed 4 years ago

klarh commented 4 years ago

This PR improves the treatment of a few relatively minor issues.

  1. Use display_id for IPython.display.display calls in Scene.show() for many backends. This causes IPython to automatically clear the location where the scene was previously displayed.
  2. Automatically broadcast quantities that have a size of 1 in mesh.unfoldProperties. This should fix most of the confusion cases when only one particle gets drawn (see #11), although it isn't the most elegant solution.
  3. Add ability to index Scene objects by integers or slices to get primitives. Part of #49.
klarh commented 4 years ago

Good suggestions, thanks @bdice!