This project is read-only.

How can we set initial reason graph range?

Sep 2, 2009 at 7:56 PM

We will plat real data during running instrument.

If run has not start yet, there is no data to plat. Open chart the Y-axis and X-axis range is set as 1

How can we set the initial reasonable graph range even though we do not provide real data to plat yet?

Such as Y-axis range is 1000 and X-axis range is 40.

we set  innerPlotter.SetVerticalTransform(0, 0, 1000, 40) in TwoIndependAxis example;

it does not work.


Sep 3, 2009 at 1:10 AM

I think Jane is asking how can the initial axis ranges be specified to match, for example, the values used in the SetVerticalTransform, instead of starting out as [0, 1].  That way the plotted data will not scale-to-fit as points are added.  There are many contexts where the ranges are known a priori and should not change as the data is added.

Sep 11, 2009 at 8:49 AM


You can set initial visible rectangle by the following code: plotter.Visible = new DataRect(xMin, yMin, width, height);

You can also create DataRect by its other constructor overloads or by static method DataRect.Create(xMin, yMin, xMax. yMax);

Since you've set a value to plotter.Visible (which is just a shortcut of plotter.Viewport.Visible), it is no longer in FitToView  mode. To move Viewport back to FitToView mode, call plotter.Viewport.FitToView() method.

Best regards,