Plotting And Viewing¶
Static Matplotlib plot:
mol.plot()
mol.plot(color_by="chain")
mol.plot(show_bonds=False)
Jupyter viewer with py3Dmol:
viewer = mol.view(style="stick")
Animated spin GIF:
mol.spin_gif("spin.gif")
Contact map heatmap:
mol.plot_contact_map(cutoff=8.0, level="residue")
Distance matrix heatmap:
mol.alpha_carbons().plot_distance_matrix()