Bug 477691 - Reference lines are drawn wrong on log axis
Summary: Reference lines are drawn wrong on log axis
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.10.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-28 20:56 UTC by nuutilajuha
Modified: 2024-07-22 06:55 UTC (History)
1 user (show)

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


Attachments
Reference line plot slightly off (40.57 KB, image/png)
2023-11-28 20:56 UTC, nuutilajuha
Details

Note You need to log in before you can comment on or make changes to this bug.
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.