Created attachment 135913 [details] A sample file to produce the bug SUMMARY xy-Curve is shifted randomly. STEPS TO REPRODUCE 1. Create a new project>worksheet>xy-plot. 2. Add a xy-Curve from a Formula. 3. Set the formula to y=0.5. 4- Set the y-Range to (0.46, 0.52). [A sample file showing the bug is attached]. OBSERVED RESULT The curve is plotted at y=0.503. If you change the y-Range, the curve shifts upward or downward randomly. EXPECTED RESULT The curve must be plotted at y=0.5. SOFTWARE/OS VERSIONS Windows: Windows 10, build 19042.746 ADDITIONAL INFORMATION I have a 4k monitor (its dpi is 240).
The curve is correctly plotted at y=0.5 but the y-axis tick label are rounded too much. The precision must be increased to avoid rounded values on the ticks or the number of ticks should be selected better. We will work on improving these settings when using auto-configuration.
(In reply to Stefan Gerlach from comment #1) > The curve is correctly plotted at y=0.5 but the y-axis tick label are > rounded too much. The precision must be increased to avoid rounded values on > the ticks or the number of ticks should be selected better. We will work on > improving these settings when using auto-configuration. You're right. It's my bad. Thanks.
LabPlot now chooses the number of ticks using the axes range. This works quite well in producing round values at the axes ticks and avoids this effect.