OERenderRamachandranPlot¶
bool OERenderRamachandranPlot(OEDepict::OEImageBase &image, const OERamachandranPlot &plot)Renders the six Ramachandran plots into separate tabs of the given image.
- image
The image on which the Ramachandran plots are rendered.
- plot
The OERamachandranPlot object that stores the data of a Ramachandran plot.
Note
This functionality is only available for
.svg
image format.Example:
image = oedepict.OEImage(800, 600) ramaplot = oegrapheme.OERamachandranPlot() ramaplot.AddMolecule(protein) oegrapheme.OERenderRamachandranPlot(image, ramaplot)
bool OERenderRamachandranPlot(OEDepict::OEImageBase &image,
const OERamachandranPlot &plot,
unsigned int ramatype)
Renders a specific Ramachandran plot into the given image.
- image
The image on which the specific Ramachandran plot is rendered.
- plot
The OERamachandranPlot object that stores the data of a Ramachandran plot.
- ramatype
The type of the Ramachandran plot being rendered. This value has to be from the
OERamaType
namespace.
See also
OERamachandranAnalysis class in OEChem TK manual
Example:
image = oedepict.OEImage(800, 600)
ramaplot = oegrapheme.OERamachandranPlot()
ramaplot.AddMolecule(protein)
oegrapheme.OERenderRamachandranPlot(image, ramaplot, oechem.OERamaType_General)
Code Example
Ramachandran Plot OpenEye Python Cookbook recipe