GitHubLionel / wxMathPlot

An enhanced version of the wxMathPlot component for wxWidgets
11 stars 4 forks source link

Confusion about GetMinX() and friends #49

Open DRNadler opened 1 month ago

DRNadler commented 1 month ago

Consider the following: I have a time-series to display, with nominal X bounds 0-150,000. I want to create the plot layer so a sub-range is displayed (ie, zoomed in on a sub-range for initial display). If I set GetMinX() and friends to the sub-range in the plot ctor, I can never zoom out to see a larger area (why?).

How do I create the plot so that a sub-range is displayed and I can still zoom out? I cannot find any documentation explaining this, maybe I missed it...

Thanks!

GitHubLionel commented 1 month ago

Well, not sure to understand the question. But, for example in "MP configuration", in Axis/Scale section, you can disable auto-scale and then set a specific range. After that, you can still zoom in and out and if you click "fit", you go back to your selected range.

DRNadler commented 1 month ago

I need to set, effectively, the 'zoom' in the plot ctor. How do I do that?

GitHubLionel commented 1 month ago

I think this is not planned.