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

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Minimum Y Axis range
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bechbd

15 Posts

Posted - 14 Nov 2005 :  11:56:11  Show Profile  Reply with Quote
Is there a way to specify a minimum Y axis range with auroscaling on. For example say that I want to autoscale the axis but always have the Y axis show at least 100 units. In other words I almost want a sort of autocentering graph.

quinncurtis

1164 Posts

Posted - 14 Nov 2005 :  13:30:39  Show Profile  Reply with Quote
Use the coordinate systems SetScaleStartY and/or SetScaleStopY method after the scale is created, or any auto-scaling calls for the coordinate system. It must be called before the axes are created, since the axes by default auto-scale to the referenced coordinate system.


CartesianCoordinates pTransform1 = new CartesianCoordinates( 0.0, 0.0, 1.0, 500.0);

pTransform1.SetGraphBorderDiagonal(0.05, 0.175, 0.08, 0.35) ;

pTransform1.SetScaleStartY(-500);
pTransform1.SetScaleStopY(750);


LinearAxis baraxis = new LinearAxis(pTransform1, ChartObj.Y_AXIS);
chartVu.AddChartObject(baraxis);


Go to Top of Page

bechbd

15 Posts

Posted - 15 Nov 2005 :  18:55:47  Show Profile  Reply with Quote
Thanks following that advice I was able to get it to work now.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07