OEDrawUnpairedInteractionMapLegend

bool OEDrawUnpairedInteractionMapLegend(OEDepict::OEImageBase &image,
                                  const OE2DActiveSiteDisplay &adisp,
                                  const OE2DActiveSiteLegendDisplayOptions &opts)

Draws legend for unpaired interaction map.

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.

opts

The OE2DActiveSiteLegendDisplayOptions object that determines how the legend is depicted.

Example:

# initailize OE2DActiveSiteDisplay

cgimage = oedepict.OEImage(400.0, 200.0)
lopts = oegrapheme.OE2DActiveSiteLegendDisplayOptions(3, 2)
oegrapheme.OEDrawUnpairedInteractionMapLegend(cgimage, adisp, lopts)
oedepict.OEWriteImage("DrawUnpairedMapLegend.png", cgimage)
../../_images/DrawUnpairedMapLegend.png

Example of using the OEDrawUnpairedInteractionMapLegend function

See also

Code Example