When I create a new worksheet > new x-y plot followed by adding: --> two x-y curves from a mathematical equation: I am only able to select the second curve by directly clicking on it, clicking on the first curve doesn't highlight it. --> three x-y curves from mathematical equation: I am able to select only the third curve by directly clicking on it, clicking on the other two curve doesn't highlight them. --> similar is the same with four curves, only the last curve can be selected by clicking on it. Is it suppose to be in this manner? Reproducible: Always Steps to Reproduce: 1.Create new worksheet 2.Add new > x-y plot 3.Under xy plot add new> x-y curves from mathematical equation more than one. Actual Results: Unable to select the curve by clicking on it. Expected Results: Whichever curve has been selected by clicking on it must get highlighted.
Hello, Today I've checked pull code and compile labplot but in version 2.2.0 everything looks ok for me. I can select all curves.
The problem exists for curves which have overlapping bounding boxes. For example, create a plot and add two curves defined via a math. equation - f(x)=sin(x) and f(x)=cos(x) and plot them from x=0 to x=1. It is not possible to select the sin curve if you click on it beyond x=0.8 since it is covered by the cos curve in this region that is drawn on top of it. However, it is possible to select the underlying sin-curve if you click somewhere below x=0.8 where there is no overlapping.
Git commit 58d76e2b30968c74948a8ccbfec35d2a5b5bf04d by Alexander Semke. Committed on 28/12/2016 at 20:08. Pushed by asemke into branch 'master'. Allow to select curves with overlapping bounding boxes. FIXED-IN: 2.4 M +25 -1 src/commonfrontend/worksheet/WorksheetView.cpp https://commits.kde.org/labplot/58d76e2b30968c74948a8ccbfec35d2a5b5bf04d