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
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 Changing the direction of the y axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

guyguy2003

10 Posts

Posted - 29 Apr 2008 :  21:49:02  Show Profile  Reply with Quote
Hi Guys!

Another question if I may - probably my last one I promise!

If I want to reverse the direction of the y axis and get the x axis to sit on top of the plot = basically the origin needs to sit on the top left corner rather than the bottom left. Is that possible?

Cheers

Guy

quinncurtis

1586 Posts

Posted - 30 Apr 2008 :  08:15:27  Show Profile  Reply with Quote
If you are explicitly setting the extent of the coordinate system, just swap the y-values. If you are using the auto-scale routines, call the coordinate systems InvertScaleY method. Once the coordinate system is setup correctly, set the y-intercept of the x-axis, and the direction of the axis tick marks.

pTransform1.AutoScale(Dataset1, ChartObj.AUTOAXES_NEAR, ChartObj.AUTOAXES_FAR  )

' Invert y-scale 
pTransform1.InvertScaleY()
.
.
.

' Define x-axis
Dim xAxis1 As New TimeAxis(pTransform1)

' Make sure x-axis intercept at top
xAxis1.AxisIntercept = pTransform1.ScaleMinY

' Point tick marks up
xAxis1.AxisTickDir = ChartObj.AXIS_MAX

chartVu.AddChartObject(xAxis1)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07