Log Plot Minimum Scale
Posted: Fri Jan 18, 2013 2:16 pm
What is the minimum scale that can be displayed on a Log-Log chart?
I can plot 0.01 minimum OK, but not 0.001?
I can plot 0.01 minimum OK, but not 0.001?
Steema Software - Customer Support Forums
http://teechart.com/support/
Code: Select all
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
line1.Add(0, Math.Log(1.1));
line1.Add(1, Math.Log(1.2));
line1.Add(2, Math.Log(1));
line1.Add(3, Math.Log(10));
line1.Add(4, Math.Log(100));
tChart1.Axes.Left.Logarithmic = true;
tChart1.Axes.Left.LogarithmicBase = 10;
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Minimum = 0.001;
tChart1.Axes.Left.Maximum = 100;
Code: Select all
double YMinlog;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Width = 500;
tChart1.Height = 300;
Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
line1.Add(0, Math.Log(1.1));
line1.Add(1, Math.Log(1.2));
line1.Add(2, Math.Log(1));
line1.Add(3, Math.Log(10));
line1.Add(4, Math.Log(100));
line1.Add(5, Math.Log(1.0002));
line1.ValueFormat = "0.0000#";
YMinlog = 0.0001;
tChart1.Axes.Left.Logarithmic = true;
tChart1.Axes.Left.LogarithmicBase = 10;
tChart1.Axes.Left.Automatic = false;
tChart1.Axes.Left.Minimum = YMinlog;
tChart1.Axes.Left.Maximum = 1;
tChart1.Axes.Left.Labels.ValueFormat = "0.000#";
}