gabrielelanaro / chemview

The new generation molecular viewer for IPython notebook
GNU Lesser General Public License v2.1
81 stars 17 forks source link

Allow colors of atoms to be overridden in point and ball_and_stick views #17

Closed jameskermode closed 8 years ago

jameskermode commented 8 years ago

This PR allows the colors used for rendering atoms to be changed from the default, e.g. to allow colouring by a computed property. It should be fully backwards compatible with the previous behaviour if the colorlist argument is not passed to MolecularViewer.points() or MolecularViewer.ball_and_stick().