uibcdf / MolSysMT

Open source library to work with molecular systems
https://www.uibcdf.org/MolSysMT/
Other
12 stars 3 forks source link

Is there a way to add a color bar to an nglview.NGLWidget? #95

Open dprada opened 1 year ago

dprada commented 1 year ago

When the Molsysmt function molsysmt.thirds.nglview.color_by_value is used, having a color bar in the resulting view would be necessary. We should look for possible solutions to do it.

One way to do it can be embedding the NGLWidget in an external widget box with the output of matplotlib (the color bar). Something similar to what is implemented in pychemcurv in the function map_view.