Bug 491502

Summary: Inverted Axis No Longer Displays Ticks
Product: [Applications] LabPlot2 Reporter: Santana <santanagarcia66>
Component: generalAssignee: Stefan Gerlach <stefan.gerlach>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.semke, clement.nicollet, stefan.gerlach
Priority: NOR    
Version: latest   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed In: 2.12
Sentry Crash Report:
Attachments: Graph with the axis inverted and ticks
Plot Conditions for inverted axis
Axis conditions/ tick conditions

Description Santana 2024-08-09 21:27:58 UTC
Created attachment 172456 [details]
Graph with the axis inverted and ticks

***
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
***

SUMMARY
When I inverted my axis the tick marks disappeared, then I went to manually adjust to try to adjust the start and stop points I could only generate a single tick regardless of how I defined the start, spacing, numbering ect. When the axis is returned to the standard ordering the tick marks return and are able to be adjusted, this was not an issue on previous versions of the software. 

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
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 Santana 2024-08-09 21:30:12 UTC
Created attachment 172457 [details]
Plot Conditions for inverted axis
Comment 2 Santana 2024-08-09 21:31:51 UTC
Created attachment 172458 [details]
Axis conditions/ tick conditions

Used the auto feature to add the offset
Comment 3 Alexander Semke 2024-09-01 11:22:11 UTC
*** Bug 492475 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Gerlach 2024-09-09 20:39:06 UTC
Git commit 4376e012f8a34e2a987dcf7ae9595a9b3b81f8b7 by Stefan Gerlach.
Committed on 09/09/2024 at 20:38.
Pushed by sgerlach into branch 'master'.

Fix reverted axes (max < min)

M  +10   -7    src/backend/worksheet/plots/cartesian/Axis.cpp
M  +4    -4    src/backend/worksheet/plots/cartesian/CartesianPlot.cpp

https://invent.kde.org/education/labplot/-/commit/4376e012f8a34e2a987dcf7ae9595a9b3b81f8b7