Logarithmic Axis Scaling
By default, all axis scales are linear, but almost all the standard graph types support logarithmic scaling where appropriate. To select logarithmic scaling of the numeric axis, call SetLog(TRUE) for the style member of the display component.
SRGraphDisplay *pD=new SRGraphDisplay;
SRGraphStyle* pS=pD->GetStyle();
// Display needs to know type of chart to display
pS->SetGraphStyle(CX_GRAPH_LINE);
pS->SetAxisStyle(CX_AXIS_AUTOMATIC);
pS->SetLog(TRUE); // make it logarithmic
For the XY Scatter and related graphs that have two numeric axes, SetLog(TRUE) makes both axes logarithmic.
The Scatter graph styles that end with _EX (e.g., CX_GRAPH_XYSCATTERG_EX) support one linear axis and one logarithmic axis. For these graph types, SetLog() effects the vertical (Y) axis and SetLogX() effects the horizontal (X) axis.






