Summary: | Auto x/y-range keeps constant | ||
---|---|---|---|
Product: | [Applications] LabPlot2 | Reporter: | uwestoehr <uwestoehr> |
Component: | frontend | Assignee: | Alexander Semke <alexander.semke> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | martin.marmsoler, stefan.gerlach |
Priority: | NOR | ||
Version First Reported In: | latest | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/labplot/96ecba5a1ae189a9254d11ce046f12750523636e | Version Fixed In: | 2.7 |
Sentry Crash Report: |
Description
uwestoehr
2018-05-08 23:51:15 UTC
Currently we auto scale the y plot range to the whole data set not only to the data of the selected (shown) x range. Does it make sense to auto scale the y range only to the data in the x range? (In reply to Stefan Gerlach from comment #1) > Currently we auto scale the y plot range to the whole data set not only to > the data of the selected (shown) x range. Does it make sense to auto scale > the y range only to the data in the x range? Well, when I explicitly set an x-range I have a reason. The only reason I can imagine is to see only the curve in the range i selected. This iplies of course that the y-range needs to be adapted too - to show only the function values in the selected x-range. Btw., if you send me a new version of LabPlot to test, I will do so. This issue remains in LP 2.7 RC5: When I explicitly change the x-range in a plot and keep the y-range on AUTO, I expect that the y-range will automatically be adjusted to the y-range in the given x-range. So in my example changing the x-range to 1..30 should automatically change the y-range to 1..30 as well since 1..100 is senseless because there is no y > 30 for the given x-range. But should we realize this on both axis? Because if this behaviour is on both, there is no possibility simply reset the zoom. For this you have to zoom completely out and the autoscale. Git commit 96ecba5a1ae189a9254d11ce046f12750523636e by Alexander Semke, on behalf of Martin Mamsoler. Committed on 10/08/2019 at 13:20. Pushed by asemke into branch 'master'. [worksheet] when doing auto-scaling in the plot, respect the current data ranges. FIXED-IN: 2.7 Differential Revision: https://phabricator.kde.org/D22495 M +12 -0 src/backend/core/AbstractColumn.cpp M +2 -0 src/backend/core/AbstractColumn.h M +122 -72 src/backend/core/column/Column.cpp M +2 -0 src/backend/core/column/Column.h M +334 -150 src/backend/worksheet/plots/cartesian/CartesianPlot.cpp M +2 -2 src/backend/worksheet/plots/cartesian/CartesianPlot.h M +122 -23 src/backend/worksheet/plots/cartesian/XYCurve.cpp M +4 -1 src/backend/worksheet/plots/cartesian/XYCurve.h https://commits.kde.org/labplot/96ecba5a1ae189a9254d11ce046f12750523636e |