OEDrawBFactorMapLegend

bool OEDrawBFactorMapLegend(OEDepict::OEImageBase &image,
                           const OE2DActiveSiteDisplay &adisp)

Draws the color gradient that is used to visualize B-factor information of an active site by the OERenderBFactorMap function.

image

The image in which the color gradient is drawn.

adisp

The OE2DActiveSiteDisplay object that holds the data necessary to depict the B-factor information of an active site.

Example:

# initialize OE2DActiveSiteDisplay

cgimage = oedepict.OEImage(300.0, 100.0)
oegrapheme.OEDrawBFactorMapLegend(cgimage, adisp)
oedepict.OEWriteImage("DrawBFactorMapLegend.png", cgimage)
../../_images/DrawBFactorMapLegend.png

Example of using the OEDrawBFactorMapLegend function

See also

Code Example