Bug 415214

Summary: Error bar stretch too much in a log plot.
Product: [Applications] LabPlot2 Reporter: Andy Great <andythe_great>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 2.7.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 2.8
Sentry Crash Report:
Attachments: Error bar stretch example file
Screenshot of the over stretch error bar.

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