Questionable Precision in Display of Logarithmic Curves
Posted: Tue Aug 23, 2016 9:10 pm
I have a question for the Support team. I have a simple application that displays a curve of values against a horizontal logarithmic scale from 0.2 to 2000. I notice, and I will try to attach a video, of the display showing that the curve values at certain points seem to be displaced almost always to the right of where they should be on that logarithmic scale. I'm asking if there's something that I'm doing wrong, or is there an issue with how TeeChart is displaying those values on a logarithmic scale.
Your system won't allow me to directly attach a WMV so I have the file in my dropbox here:
https://www.dropbox.com/s/gcd11qcs5603a ... n.wmv?dl=0
Also added a screen shot attached, but you cannot see my cursor in it. The value in question, for example, is 4955 / 3.8942.
Note that in the video, the value of 3.89 is clearly to the right of the minor grid line for 4.0 and shouldn't be, it should be to the left. Same with the other values I stop at. Visual precision is important for our application as it will be a point of criticism.
Here's the code that pulls the values. I have verified in the debugger that the correct value is being sampled.
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
if (tChart1.Series.Count > 0)
{
int tmp = fastLineSeries1.Clicked(e.X, e.Y);
if (tmp != -1)
{
textBox1.Text = ((double)mapTheDoubles[tmp]).ToString();
textBox2.Text = ((double)secondCurve[tmp]).ToString();
}
else
{
textBox1.Text = "?";
textBox2.Text = "?";
}
}
}
Your system won't allow me to directly attach a WMV so I have the file in my dropbox here:
https://www.dropbox.com/s/gcd11qcs5603a ... n.wmv?dl=0
Also added a screen shot attached, but you cannot see my cursor in it. The value in question, for example, is 4955 / 3.8942.
Note that in the video, the value of 3.89 is clearly to the right of the minor grid line for 4.0 and shouldn't be, it should be to the left. Same with the other values I stop at. Visual precision is important for our application as it will be a point of criticism.
Here's the code that pulls the values. I have verified in the debugger that the correct value is being sampled.
private void tChart1_MouseMove(object sender, MouseEventArgs e)
{
if (tChart1.Series.Count > 0)
{
int tmp = fastLineSeries1.Clicked(e.X, e.Y);
if (tmp != -1)
{
textBox1.Text = ((double)mapTheDoubles[tmp]).ToString();
textBox2.Text = ((double)secondCurve[tmp]).ToString();
}
else
{
textBox1.Text = "?";
textBox2.Text = "?";
}
}
}