Bug 477691

Summary: Reference lines are drawn wrong on log axis
Product: [Applications] LabPlot2 Reporter: nuutilajuha
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal CC: martin.marmsoler
Priority: NOR    
Version First Reported In: 2.10.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 2.11
Sentry Crash Report:
Attachments: Reference line plot slightly off

Description nuutilajuha 2023-11-28 20:56:30 UTC
Created attachment 163592 [details]
Reference line plot slightly off

SUMMARY
Adding a horizontal reference line while using logarithmic x-axis, or a vertical reference line with a logarithmic y-axis draws the reference line slightly off. The reference lines are of correct size and are at correct value, but they have some sort of offset from the perpendicular axis. I've attached an image.

STEPS TO REPRODUCE
1. Make a work sheet, add two axis
2. Make x-axis or y-axis log10 with starting point 0.1 and end point 10
3. Add a horizontal reference line if x-axis is log10 or vertical line if y-axis is log10

OBSERVED RESULT
The line is at correct value but is drawn partially outside the plot area

EXPECTED RESULT
Line should touch the perpendicular axis and stay within plot area

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.6.2-arch1-1 (64-bit)
KDE Plasma Version:  5.27.9
KDE Frameworks Version:  5.112.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Martin 2023-12-02 18:28:39 UTC
Fixed in https://invent.kde.org/education/labplot/-/merge_requests/437. Will be merged within a few days. Thanks for reporting
Comment 2 Alexander Semke 2024-07-22 06:55:12 UTC
2.11 was released recently (https://labplot.kde.org/2024/07/16/labplot-2-11-released/) which has the fix for this issue.