Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Scrolling XY Graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PhoenixDaCat

14 Posts

Posted - 23 Feb 2005 :  08:59:33  Show Profile  Reply with Quote
What is the best way to implement what used to be called a Scrolling XY Graph using real time controls?

Also, what is there a funcitonal equivalent to the .copyToClipboard function that was in the ActiveX control?

quinncurtis

1164 Posts

Posted - 23 Feb 2005 :  09:23:29  Show Profile  Reply with Quote
Take a look at the example program RTXYPlot; it implements a Scrolling XY Graph.

The BufferedImage.PutImageOnClipboard method will place a chart image on the clipboard.
Go to Top of Page

PhoenixDaCat

14 Posts

Posted - 23 Feb 2005 :  10:19:29  Show Profile  Reply with Quote
Thanks but having looked at the VB5 code I have to convert, I don't think that the original programmer had need to use a real time graph after all, as the graph was to plot the stretching (extension) of a material given the force applied. I think that a 2D graph can be used. I can see how it works using real time controls, but how about Chart2D?

I've just sat down to read the 400 page manual, and I have a 5 day dead line to convert from the ActiveX to the .NET version. Any chance of a pointer to the right areas of the pdf manuals for information on the following?

The graph I am attempting to create will have multiple datasets, and in most cases the x-axis values of each dataset will not coincide. Of all the examples I've looked at so far in the QCChart2D example prog, if any values for a dataset at a given x position are missing, the lines dip to 0. That isn't what I want. I want the line to continue to the next point, interpolating the missing datapoint.

I have all the x/y values in a 2 dimensional array. Is it possible to somehow pass this to a chart and have it worry about working out the x/y scales, and to plot multiple graphs on the same axis?

From what I have read so far it would appear that you can have different datasets with different axis on the same graph. Is this the case? Would the AutoScale work in this instance?


Edited by - PhoenixDaCat on 23 Feb 2005 10:33:58
Go to Top of Page

quinncurtis

1164 Posts

Posted - 23 Feb 2005 :  10:41:15  Show Profile  Reply with Quote
I really can't give you any shortcuts to reading the manuals. We really don't have a Matrix input plug for learning this stuff. Once you start to create your own program make sure that you read the tutorials, Chapter 18 in the RT manual, Chapter 23, in the QCChart2D manual.

If you have a missing x-values, it is up to you to do one of three things automatically in the program; (1) detect that the x-value is missing and assign the value that you want to the missing x-value and then update the dataset, (2) simply skip the xy pair that has the missing x-value which will give you the apparent interpolation that you want (the data is meanless anywhay without an x-value), or (3) make that data point invalid (Dataset.SetValidData(int index, bool valid) method. Option (3) will cause a gap to appear in the plotted line at the invalid datapoint.

I doubt if you want to use different scales. It sounds like you should just plot multiple SimpleLinePlot objects against a single coordinate system. There are auto-scale routines and example programs that take multiple datasets and define a single coordinate system that will display all of the data.
Go to Top of Page

PhoenixDaCat

14 Posts

Posted - 23 Feb 2005 :  10:46:39  Show Profile  Reply with Quote
Your last statement sounds to be exactly what I want. Sorry to be a pain, but there are quite a few examples, so which are you referring to? I've just got to page 72 of the manual which looks like it may cover what I want to know.

Edited by - PhoenixDaCat on 23 Feb 2005 10:47:42
Go to Top of Page

PhoenixDaCat

14 Posts

Posted - 23 Feb 2005 :  10:54:42  Show Profile  Reply with Quote
fantastic. there it is on page 81.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07