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
|