Bug 503373

Summary: Horizontal position of the axis label "1" in the vertical axis is wrong
Product: [Applications] LabPlot2 Reporter: Yoshinobu Shimamura <shimamura.yoshinobu>
Component: frontendAssignee: Israel Galadima <izzygaladima>
Status: RESOLVED FIXED    
Severity: minor CC: izzygaladima
Priority: NOR    
Version First Reported In: latest   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 2.12.1
Sentry Crash Report:
Attachments: A scatter plot ranging from -1 to 3 in Y axis
Scatter Plot with Axis

Description Yoshinobu Shimamura 2025-04-26 04:16:54 UTC
Created attachment 180672 [details]
A scatter plot ranging from -1 to 3 in Y axis

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
In Labplot 2.11.80, the horizontal position of the axis label "1" in the vertical axis is wrong when the the Y axis includes an integer 1 for an axis label as shown in the attached figure.

STEPS TO REPRODUCE
1.  Plotting a plot from a data set such as X: -1 0 1 2 3, Y: -1 0 1 2 3
2.  
3. 

OBSERVED RESULT
The axis label "1" in the vertical axis is shifted to the right.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows:  11 Home 24H2
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Israel Galadima 2025-08-02 08:45:28 UTC
Dear Yoshinobu Shimamura,

Thank you for reporting this issue.
It has now been resolved in the upcoming 2.12.1 release.
If you want the fix now, you can try the nightly builds from our download page (https://labplot.org/download) under the "Development Versions" section.

Thanks and kind regards.
Comment 2 Yoshinobu Shimamura 2025-08-04 01:44:54 UTC
Thank you very much for corrcting the bug. The bug is not fixed in the nightly build on July 31, but I think the correction will be reflected in the future official release version. Thank you so much again.
Comment 3 Israel Galadima 2025-08-04 12:06:30 UTC
Created attachment 183776 [details]
Scatter Plot with Axis

This image was created with the nightly build you mentioned.
Comment 4 Yoshinobu Shimamura 2025-08-05 01:17:20 UTC
Thank you for your quick reply. I confirmed that the numbers for the Y-axis are correctly right-aligned as your plot. I am sorry that my confirmation was inadequate. Anyway, thank you very much again!