# OEDrawBFactorMapLegend¶

bool OEDrawBFactorMapLegend(OEDepict::OEImageBase &image,


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.
The OE2DActiveSiteDisplay object that holds the data necessary to depict the B-factor information of an active site.

Example:

// initialize OE2DActiveSiteDisplay

OEImage cgimage = new OEImage(300.0, 100.0);