Plot ranges don't work for ref. ranges and ref. lines
Requirements
-
I searched through the issues if the issue already exists
Steps to reproduce
- Make a plot.
- Add e.g. a horizontal reference range or line.
- Apply a new plot range to the ref. range or line. For example, limit the x-data range to show the horizontal reference range not in the whole range for x-data, but only in its part).
Expected
Plot ranges should also work for ref. ranges / lines if they are available in the panel, otherwise why they are there? Being able to limit the range of ref. ranges / lines would be useful and this could be done through plot ranges. In the attached plot you can only see one ref. range which is not limited in the x-axis range according to the defined plot range.
In the example provided in the attached image, I wanted to add 3 three different ref. ranges, one per each of the three curves in the plot. To be more precise, the x-axis range of the ref. range should be the same as the range of the relevant curve.
Observed
Plot ranges don't work for ref. ranges / lines. There is no way to limit the ref. range / line.
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-iBL1hA/labplot-2.10.1+git202311172246~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