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

Add static rendering feature to vispy scenes #38

Closed klarh closed 5 years ago

klarh commented 5 years ago

This rendering feature automatically renders a Scene object offscreen and displays the image inside a jupyter notebook whenever Scene.show() is called, rather than displaying a webGL widget. It does require the user to select a non-jupyter backend through vispy at the start, since vispy only supports having one backend active.

Also included is a change to set the background color alpha to 1 in one case for the additive_rendering feature, which removes some ambiguous behavior with that feature depending on which vispy backend was selected.

klarh commented 5 years ago

Manually merged.