Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Basic question on the RTGraph features

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
soundar Posted - 12 Oct 2013 : 14:25:54
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.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 14 Oct 2013 : 08:57:01
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07