Profile Picture

Adding new axes

Posted By Ben Alexander 14 Years Ago
Author
Message
bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Ben,

Following are the default axis anchors assigned to each of the default Cartesian axes:

// primary Y axis
primaryYAxis.Anchor = new NDockAxisAnchor(AxisDockZone.FrontLeft, true, 0, 100);

// secondary Y axis
secondaryYAxis.Anchor = new NDockAxisAnchor(AxisDockZone.BackRight, true, 0, 100);

// bottom horizontal (categories) axis
primaryXAxis.Anchor = new NDockAxisAnchor(AxisDockZone.FrontBottom, true, 0, 100);

// top horizontal axis
secondaryXaxis.Anchor = new NDockAxisAnchor(AxisDockZone.BackTop, true, 0, 100);

// depth (series) axis
depthAxis.Anchor = new NDockAxisAnchor(AxisDockZone.BottomRight, true, 0, 100);

Hope this helps - let me know if you meet any problems.

Best regards,
Bob



Ben Alexander
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 5, Visits: 1

 

I have an interactive program, and I want my users to be able to go back and forth between different plots.  In one instance I want them to have the ability to specify that their axes in a 2-dimentsional plot should cross in the middle of the plotting area, as might be specified with an NCrossAxisAnchor.  My problem is that after I display this graph, and when the user want to return to the default plot with axes on the bottom and the left, then I don't know how to successfully return to that original orientation.  I can't set the axis anchors to null (that's a crash), I can't save the original .Anchor values and reassign them (somehow the new graph is not identical to the ones I started with) and I can't find the right combination of constructors & parameters to make my own .Anchor values that mimic the original ones.  Another approach would be for me to simply wipe out all existing NAxis objects and simply re-create them from scratch for every plot, but I've never been able to figure out all the correct constructor/initialization values to do that either.  Does anybody have any ideas for me?  What is the way to construct new NAxis objects from scratch so that I can produce a set of axes that would be identical to those that I get by default with my first plot?  Or failing that, what is a way to wipe out any axis crossing anchors in order to get back to where I started?  Any help much appreciated.  -Ben





Similar Topics


Reading This Topic