Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using MSChart with logarithmic x axis

Status
Not open for further replies.

BobWman

Programmer
Jan 7, 2002
169
0
0
US
I have the following array which is used to populate an MSChart:

X Y
0.0012 29.19
0.00277 39.17
0.0054 49.25
0.00749 52.9
0.01013 61.63
0.01743 62.88
0.02679 67.87
0.075 88.43
0.425 92.73
2 98.59

I want the chart to be semi-logarithmic, with the x-axis being logarithmic. I can successfully display a non-logarithmic graph with correct labelling on both axes. I can also make the Y-axis logarithmic. However, I can't make the X-Axis logarithmic.

This is the code:
.Plot.Axis(VtChAxisIdX).AxisScale.Type = VtChScaleTypeLogarithmic
.Plot.Axis(VtChAxisIdX).AxisScale.LogBase = 10

Is this possible?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top