This is a short guide on how to save high-resolution figures from the dynophore notebook.
You can download the
nglview view as an image as follows:
view = dyno.view3d.show(..)
Adjust the molecule as you wish it to be saved. Then save it!
view.download_image(filename='screenshot.png', factor=4, antialias=True, trim=False, transparent=False)
Find more details in the
In the dynophore notebook, all plots are interactive thanks to
If you want to save figures, you can use the
ipympl widget (disc icon);
find more details here.
You can also enlarge the figure first and save it then to increase resolution.
If you want to manipulate figures or save them at a defined high resolution,
you can use the
which follows the same signature as its interactive counterpart.
Functions from this module will return the figure and axes handles, allowing to apply changes.
The interactive mode:
# Save figure via the ipympl widget menu
The static mode:
fig, ax = dyno.plot.static.envpartners_all_in_one(dynophore)
Note that in the static mode you need to select the exact data you would like to display
(in the interactive mode this is by interacting with the widgets).
You can check your options by typing
followed by a tab and enter.