Autoscale in one axis with VB.NET

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
Mao
Posts: 12
Joined: Tue Jan 16, 2007 2:25 pm

Autoscale in one axis with VB.NET

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Mao
Posts: 12
Joined: Tue Jan 16, 2007 2:25 pm

Post 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
Post Reply