Bug 415214 - Error bar stretch too much in a log plot.
Summary: Error bar stretch too much in a log plot.
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.7.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-15 18:00 UTC by Andy Great
Modified: 2019-12-26 19:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 2.8
Sentry Crash Report:


Attachments
Error bar stretch example file (49.71 KB, application/x-labplot2)
2019-12-15 18:00 UTC, Andy Great
Details
Screenshot of the over stretch error bar. (181.35 KB, image/png)
2019-12-15 18:01 UTC, Andy Great
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Great 2019-12-15 18:00:41 UTC
Created attachment 124511 [details]
Error bar stretch example file

Using a log plot as in the attached file as example, the bar of the error bar stretch too much.


labplot-kf5-2.7.0-1.3

Operating System: openSUSE Tumbleweed 20191207
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1
Kernel Version: 5.3.12-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 7.5 GiB of RAM
Comment 1 Andy Great 2019-12-15 18:01:14 UTC
Created attachment 124512 [details]
Screenshot of the over stretch error bar.
Comment 2 Alexander Semke 2019-12-26 19:24:24 UTC
Git commit 9572427432b79a89d8adc69778aaf55e18ac3c57 by Alexander Semke.
Committed on 26/12/2019 at 19:23.
Pushed by asemke into branch 'master'.

Better algorithm to draw the error bar caps - don't convert the size of the error bar caps to logical units, determine the anchor points (end points of error bars) and draw the bar caps in scene coordinates relativ to the anchor points.
FIXED-IN: 2.8

M  +35   -63   src/backend/worksheet/plots/cartesian/XYCurve.cpp

https://invent.kde.org/kde/labplot/commit/9572427432b79a89d8adc69778aaf55e18ac3c57