Better default synchronization (positioning) of time-related ticks and labels with x-data points
Requirements
-
I searched through the issues if the issue already exists
Steps to reproduce
- Open the project file: Project.lml
Expected
In the spreadsheet there is the column 'Year'. By default, it's format is only "yyyy", but LabPlot interprets it as "yyyy.01.01". It is expected that by default the ticks and labels related to this time-related column will be synchronized (positiioned) with the x-data points.
This is how it should be presented by default:
Observed
By default, the ticks and labels related to time-related columns (data) are not synchronized (positiioned) at all with the x-data points. This is misleading and may have serious consequences. If the difference is small, it is even difficult to notice. It is not easy to manually synchronize the ticks and labels with the time-related x-data points.
Labplot Version
Debug build
System: Ubuntu 23.10
Locale: English,United States (Decimal point ',', Group separator ' '
Number settings: Decimal point ',', Group separator ' ', Exponential 'e', Zero digit '0', Percent '%', Positive/Negative sign '+'/'-' (Updated on restart)
Architecture: x86_64-little_endian-lp64
Kernel: linux 6.5.0-10-generic
C++ Compiler: GNU 13.2.0
C++ Compiler Flags: -g -O2 -fdebug-prefix-map=/build/labplot-0PxOvw/labplot-2.10.1+git202311162247~ubuntu23.10.1=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -Wall -Wextra -Wundef -Wpointer-arith -Wunreachable-code -Wunused -Wdeprecated-declarations -fno-omit-frame-pointer -fstack-protector -fexceptions -std=c++17 -O2 -Wcast-align -Wswitch-enum -fvisibility=default -pedantic -Wzero-as-null-pointer-constant
Edited by Dariusz Laska