Various Smith Series problems
Posted: Thu Oct 12, 2006 12:43 pm
Hi,
1.
When I use a Smith Series, no symbol is shown in the legend. It should be perfectly possible (e.g. similar to symbol used for a CustomPolar Series), so I expect it isn't implemented yet.
2.
I get some strange output from the PointToRadius function. It doesn't always return the value I would expect.
I've made a simple example to demonstrate the problem. It just contains a form with a TChart that contains one Smith Series. The form also has a button on it. This is the relevant code:
The WriteLine in the form constructor prints out what you would expect; being "Radius: 0". However when you press the button, the WriteLine in the Click EventHandler prints out "Radius: 0.152". Any idea why this is happening?
3.
The CursorTool on a Smith Series is not usable.
If you enable it to snap to the plot, it snaps to various irrelevant locations.
The XValue and YValue property do not return a value that is related to the Smith Chart (got the impression that it is related to the horizontal and vertical axis, which aren't used). I expect that this is calculated based on the GetHorizAxis and GetVertAxis, but if the associated Series UseAxis property is false (e.g. Smith Series), this should not be the correct way to do so.
This can be easily reproduced with the following code:
Regards
1.
When I use a Smith Series, no symbol is shown in the legend. It should be perfectly possible (e.g. similar to symbol used for a CustomPolar Series), so I expect it isn't implemented yet.
2.
I get some strange output from the PointToRadius function. It doesn't always return the value I would expect.
I've made a simple example to demonstrate the problem. It just contains a form with a TChart that contains one Smith Series. The form also has a button on it. This is the relevant code:
Code: Select all
public Form1()
{
InitializeComponent();
smith1.FillSampleValues();
Console.WriteLine("Radius: " + smith1.PointToRadius(smith1.CircleXCenter, smith1.CircleYCenter));
}
private void button1_Click(object sender, EventArgs e)
{
Console.WriteLine("Radius: " + smith1.PointToRadius(smith1.CircleXCenter, smith1.CircleYCenter));
}
3.
The CursorTool on a Smith Series is not usable.
If you enable it to snap to the plot, it snaps to various irrelevant locations.
The XValue and YValue property do not return a value that is related to the Smith Chart (got the impression that it is related to the horizontal and vertical axis, which aren't used). I expect that this is calculated based on the GetHorizAxis and GetVertAxis, but if the associated Series UseAxis property is false (e.g. Smith Series), this should not be the correct way to do so.
This can be easily reproduced with the following code:
Code: Select all
public Form1()
{
InitializeComponent();
smith1.FillSampleValues();
cursorTool1.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(cursorTool1_Change);
}
void cursorTool1_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e)
{
Console.WriteLine("X: " + cursorTool1.XValue + " / Y: " + cursorTool1.YValue);
}