I have a CombinedDomainXYPlot, whose domain axis is (at my application level)
an integer index from 0 to N. Now my program wants to pan and zoom so that
a given X-axis value, xTarget, is centered, and zoom so that a given range,
say xWidth, is shown. Is there an example of how to do this cleanly?
(The Y-axis should be no problem; it will autoscale to suit the data shown in
whatever domain-axis range gets exposed).
Thanks
Jim G.
How to position CombinedDomainXYPlot at given X value
Re: How to position CombinedDomainXYPlot at given X value
Get a reference to the shared domain axis, then call this method
Code: Select all
public void setRangeAboutValue(double value, double length)
Re: How to position CombinedDomainXYPlot at given X value
Oh man -- dunno how I failed to find that. Perfect.
Thanks
jim
Thanks
jim