Hello Pat,
The problem isn't with setting the min and max value on the graph. Because I can do that, with a code similar to yours.
What I want is something like this: if I draw a graph on a X axis that ranges from 0 to 10, and then I set the X max value to 20, then I want the graph to expand, to be refitted, redistributed to fit from 0 to 20; or if I set the X max value to 5, the graph to "compress" and fit from 0 to 5, not just a zoom to the part of the graph between 0 and 5, but the entire graph to be refitted to the new value range of the X axis.
Any ideas?
Alexandra