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

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Basic question on the RTGraph features
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


51 Posts

Posted - 12 Oct 2013 :  14:25:54  Show Profile  Reply with Quote
I need to draw a graph with linear X, and linear Y1 and linear Y2 axes (multiple Y axes, on the left and right)
Each of the X, Y1 and Y2 axes, depending on user selection, need to be either autoscaled or with fixed extends (fixed min and max).
The Y1 and Y2 axes each may have more than one 'series'. I only need one Y1 and one Y2 axis though.

Can I use the RTGraph classes to draw such graphs? Should I?
Note that the X axis is not time, so values can change both towards +ve and -ve directions.

There are no examples I can find. The only relevant example seems to RTXYPlot, but this plot has fixed xmin,xmax,ymin,ymax and does not seem to autoscale. Also it has only one Y axis.

Do the RTGraph features relate to SCROLLING only, and not to autoscaling, which means the x axis values are always expected to monotonically increase with time? I read in this forum that more than one coordinate system demands more than one scrollframe, which means if I want Y1 and Y2 axes is my only solution to use the RTGraph functionality (and not just the Chart2D functionality?)

I am having a great difficulty to get this done and I would appreciate any help.

Edited by - soundar on 13 Oct 2013 18:59:34


1563 Posts

Posted - 14 Oct 2013 :  08:57:01  Show Profile  Reply with Quote
You should be able to do what you describe. You will need two overlapping coordinate system, each initially scaled. Charts with two or more coordinate systems are discussed in our FAQ http://www.quinn-curtis.com/QCChart2DFAQs.htm. You will need a separate RTScrollFrame for each coordinate system.

The RTScrollFrame does not have to process purely time increasing (monotonic) data. They can process non-monotonic data in a XY graph, with autoscaling, similar to our RTXYPlot example. You do have to specify a y-scaling mode in the RTScrollFrame constructor, and a TimeStampMode set to RT_NOT_MONOTONIC_X_MODE.

RTScrollFrame scrollFrame = new RTScrollFrame(this, inputChannel1, pTransform1, ChartObj.RT_AUTOSCALE_X_MINMAX, ChartObj.RT_AUTOSCALE_Y_MINMAX);
scrollFrame.TimeStampMode = ChartObj.RT_NOT_MONOTONIC_X_MODE;        

If you would like us to write a custom example program to your specification, let us know and we can give you a quote.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07