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)

Example of using the OERenderRamachandranPlot function

../../_images/RenderRamachandranPlot.svg

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

Example:

image = oedepict.OEImage(800, 600)

ramaplot = oegrapheme.OERamachandranPlot()
ramaplot.AddMolecule(protein)

oegrapheme.OERenderRamachandranPlot(image, ramaplot, oechem.OERamaType_General)

Example of using the OERenderRamachandranPlot function

../../_images/RenderRamachandranPlot-General.svg

Code Example