Bug 408533 - wrong auto range for plots
Summary: wrong auto range for plots
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (show other bugs)
Version: latest
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-10 15:03 UTC by Uwe Stöhr
Modified: 2019-07-13 18:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
example plot showing the bug (17.29 KB, application/gzip)
2019-06-10 15:03 UTC, Uwe Stöhr
Details
screenshot of fitting settings (279.46 KB, image/jpeg)
2019-07-02 11:02 UTC, uwestoehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Stöhr 2019-06-10 15:03:58 UTC
Created attachment 120754 [details]
example plot showing the bug

- open the attached plot
- look at the x-axis: it runs from 0 to 4000 but there are only data in the plot with up to x=1200

So the automatic range is determination is obviously broken.
Comment 1 Alexander Semke 2019-06-11 19:25:16 UTC
the fit curve seems to be the problem here. We'll check.
Comment 2 Alexander Semke 2019-07-01 20:39:25 UTC
The fit curve saved in the project ranges from 0 to 4000. This is the reason for the x-range of the plot going from 0 to 4000. Did you create the fit maybe with data that also ranged from 0 to 4000 and deleted some data leaving the data for x=0, ..., 1200 only without doing another fit after this?

If I recalculate the fit with this data the fit curve goes from 0 to 1200 and the plot is also properly re-scaled.
Comment 3 uwestoehr 2019-07-02 11:01:50 UTC
> Did you create the fit maybe with data that also ranged from 0 to 4000 and deleted some data leaving the data for x=0, ..., 1200 only without doing another fit after this?

No, input the data manually. The highest x value (the energy) is 1200. Therefore I am wondering why the fit goes up to 4000. In the fitting dialog I set the option to auto-range and I can see there that this means from 0..1200, see the attached screenshot.

So I don't know where the fitting range up to 4000 came into play. I can also not find out where to change this, except of turning off auto-range.

So maybe the bug is that the auto-range option for fits did not use the correct values?
Comment 4 uwestoehr 2019-07-02 11:02:34 UTC
Created attachment 121282 [details]
screenshot of fitting settings
Comment 5 uwestoehr 2019-07-13 18:16:20 UTC
Since the bug is no longer reproducible, I'll close it. The bug was caused by a wrong range for the fit.