| Summary: | wrong auto range for plots | ||
|---|---|---|---|
| Product: | [Applications] LabPlot2 | Reporter: | Uwe Stöhr <uwestoehr> |
| Component: | frontend | Assignee: | Alexander Semke <alexander.semke> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | uwestoehr |
| Priority: | NOR | ||
| Version First Reported In: | latest | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
example plot showing the bug
screenshot of fitting settings |
||
the fit curve seems to be the problem here. We'll check. 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. > 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?
Created attachment 121282 [details]
screenshot of fitting settings
Since the bug is no longer reproducible, I'll close it. The bug was caused by a wrong range for the fit. |
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.