I am using a ColorGrid to create a spectrogram of a signal. This consists of a the results of a number of FFTS taken between a specified signal start and end time for a defined number of samples with sample overlap. The frequency forms the X axis, the amplitude the Y axis and time the Z axis. The maximum allow number of FFTs for display is limited 1250 but can be as few as 1.
The user can select a data point on the ColorGrid and a Mark Text value displayed. The point index marks style is being used to return an index into the data series which is then used to index the X, Y and Z values to create the Mark Text. When the maximum number of FFTs are displayed the Mark Text is always correct, however when less that the maximum then the Mark Text is incorrect and on investigation the point index value is less than expected.
At present I am not sure if there is a problem with the way I am setting up the ColorGrid and thus if the point index is correct and my set up is wrong. Or if there have been problems with the ColorGrid point index, could someone advise me on this. I am currently using TeeChart .NET2010 VS .NET2005 4.1.2010.08041. I have not as yet been able to create a simple example of the problem I can send to you.
ColorGrid and Mark Text
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: ColorGrid and Mark Text
Hello Paul,
Thanks in advance.
That would be very helpful and necessary as what you describe is quite complex.Paul wrote:I have not as yet been able to create a simple example of the problem I can send to you.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ColorGrid and Mark Text
Narcís
I have now been able to create and example. The attached program draws two ColorGrids one with 640,000 data points and one with 640,800 data points. Both have a X axis of 0 to 200. The first Colour grid has one vertical and one horizontal line of values that are non-zero, with a Z range of 0 to 800. The first Colour grid has two vertical and two horizontal lines of values that are non-zero, with a Z range of 0 to 801.
The mark text values on the first ColorGrid are incorrect, the vertical line demonstrates this, while the mark text values on the second ColorGrid are correct. I have changed the Z range on the second ColorGrid from 800, mark text incorrect, to 1600, mart text correct. And from other tests I have done on my application it seems to me that the correctness or otherwise of the mark text values is dependant on the number of data points plotted. Could you confirm that this is the case, or can you tell be if I am drawing the ColorGrid incorrectly.
I have added the code for my example, it is part of a VS 2005 project. I am using TeeChart for .Net 2010 version 4.1.2010.8041. A version with the built program is to large to send, but I could do this via e-mail if you wish.
Many Thanks
Paul
I have now been able to create and example. The attached program draws two ColorGrids one with 640,000 data points and one with 640,800 data points. Both have a X axis of 0 to 200. The first Colour grid has one vertical and one horizontal line of values that are non-zero, with a Z range of 0 to 800. The first Colour grid has two vertical and two horizontal lines of values that are non-zero, with a Z range of 0 to 801.
The mark text values on the first ColorGrid are incorrect, the vertical line demonstrates this, while the mark text values on the second ColorGrid are correct. I have changed the Z range on the second ColorGrid from 800, mark text incorrect, to 1600, mart text correct. And from other tests I have done on my application it seems to me that the correctness or otherwise of the mark text values is dependant on the number of data points plotted. Could you confirm that this is the case, or can you tell be if I am drawing the ColorGrid incorrectly.
I have added the code for my example, it is part of a VS 2005 project. I am using TeeChart for .Net 2010 version 4.1.2010.8041. A version with the built program is to large to send, but I could do this via e-mail if you wish.
Many Thanks
Paul
- Attachments
-
- ContourSize.zip
- ColorGrid number of data points test code
- (17.1 KiB) Downloaded 569 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: ColorGrid and Mark Text
Hi Paul,
This might be a problem with ColorGrid.Clicked method. I haven't been able to get it working consistenly with different number of points nor with the code below. So I added this problem do bugzilla (ID1051) to be investigated for future versions. Please feel free to sign up and add yourself to the CC List at bugzilla for status updates.
This might be a problem with ColorGrid.Clicked method. I haven't been able to get it working consistenly with different number of points nor with the code below. So I added this problem do bugzilla (ID1051) to be investigated for future versions. Please feel free to sign up and add yourself to the CC List at bugzilla for status updates.
Code: Select all
void _dataSeriesContour1_Click(object sender, MouseEventArgs e)
{
var colorGrid1 = (Steema.TeeChart.Styles.ColorGrid)sender;
var index = colorGrid1.Clicked(e.X, e.Y);
if (index != -1)
{
_plotChartContour1.Header.Text = colorGrid1.YValues[index].ToString() + ", " + colorGrid1.XValues[index].ToString() + ", " + colorGrid1.ZValues[index].ToString();
}
else
{
_plotChartContour1.Header.Text = "no point clicked";
}
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ColorGrid and Mark Text
Narcís
Many thanks for confirming there is a problem. I would be interest to see how you get on.
Again many thanks
Paul
Many thanks for confirming there is a problem. I would be interest to see how you get on.
Again many thanks
Paul
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: ColorGrid and Mark Text
Hi Paul,
You're welcome.
You're welcome.
Please sign up at Steema's bugzilla and add yourself to the CC List of bug #1051.Paul wrote:I would be interest to see how you get on.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ColorGrid and Mark Text
Narcís
I have signed up for Bugzilla. Have you any idea as to when the problem will be fixed and a revised library release?
Thanks
Paul
I have signed up for Bugzilla. Have you any idea as to when the problem will be fixed and a revised library release?
Thanks
Paul
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: ColorGrid and Mark Text
Hello Paul,
Yesterday we published a TeeChart for .NET update. See the announcement here. Given that, you may expect a new release being published before the end of the first quarter of 2015.
I added you to the CC List for bug #1051. I'm afraid I can't tell you when this issue is going to be closed. The time until we can fix a bug or implement a new feature depends on variables such as the complexity of the problem, impact and the number of issues with even higher priority that claims our team attention.
Yesterday we published a TeeChart for .NET update. See the announcement here. Given that, you may expect a new release being published before the end of the first quarter of 2015.
I added you to the CC List for bug #1051. I'm afraid I can't tell you when this issue is going to be closed. The time until we can fix a bug or implement a new feature depends on variables such as the complexity of the problem, impact and the number of issues with even higher priority that claims our team attention.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |