Page 1 of 1

Autoscale in one axis with VB.NET

Posted: Mon May 07, 2007 10:40 am
by Mao
Good morning:

I am plotting curves with VB.NET and I am scaling the coordinates using the command ManualScale. Is there any way to autoscale the data in Y and set the limits in X ? Example: I want my X data to be displayed from 0 to 175, but the data in Y to be autoscaled.

Thanks.

Mao

Posted: Mon May 07, 2007 10:47 am
by DPlotAdmin
Yes and no. If you omit the Y values from the ManualScale command, as in

[ManualScale(xlo,,xhi,)]

then you'll get what you want. The gotcha is that whatever auto-scaled Y extents DPlot would have used will now be forced, as if you had entered those values to start with. So if you add new data with Y values outside those extents, it will be clipped.

Posted: Mon May 07, 2007 11:01 am
by Mao
That is what is happening to me. I wrongly assumed that if I did not declare y_lo and y_hi the Y axis would autoscale, but it is not. I guess I need to calculate manually my max and min and then to define tha scale based on the difference.

Thanks.

Mao