Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 Changing the direction of the y axis

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
guyguy2003 Posted - 29 Apr 2008 : 21:49:02
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
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 30 Apr 2008 : 08:15:27
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)

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07