Is there any log scaling for x and y axis?
Thank you
Herman
log scaling
Hi, Hermann.
Yes, sure. Just set the TChartAxis.Logarithmic property to true.
Yes, sure. Just set the TChartAxis.Logarithmic property to true.
Code: Select all
Chart1.Axes.Left.Logarithmic := True;
Chart1.Axes.Left.SetMinMax(1.e-3,1.0e+3);
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
I found that in chart editor there is an axis scale property.
On the right of the logarithmic checkbox, there is a log base edit.
I want to make something like that, how?
Suppose i want to set the left axis:
when logarithmic is checked, then
chart1->LeftAxis->Logarithmic = true;
chart1->LeftAxis->LogarithmicBase = 100;
Then error comes, when i run it and checked the logarithmic checkbox.
How to solve it?
I use BCB6.
Thank you
Herman
On the right of the logarithmic checkbox, there is a log base edit.
I want to make something like that, how?
Suppose i want to set the left axis:
when logarithmic is checked, then
chart1->LeftAxis->Logarithmic = true;
chart1->LeftAxis->LogarithmicBase = 100;
Then error comes, when i run it and checked the logarithmic checkbox.
How to solve it?
I use BCB6.
Thank you
Herman
Hi, Herman.
Hmm... Negative values can be problematic, as any log function is defined only for positive values
Before switching to logarithmic scale, make sure axis values are positive. In short : you can't plot Log(-3)., only Log(x>0).
Hmm... Negative values can be problematic, as any log function is defined only for positive values
Before switching to logarithmic scale, make sure axis values are positive. In short : you can't plot Log(-3)., only Log(x>0).
Marjan Slatinek,
http://www.steema.com
http://www.steema.com