Using the following script:
reset
$DATA << EOD
1
2
1
3
2
2
3
1
3
3
2
100
4
3
3
EOD
set autoscale x
set autoscale y
set style boxplot nooutliers
plot $DATA with boxplot
The plot autoscales in y from 0 to 100, although the outlier at y=100 should be ignored because of "nooutliers". Quoting the documentation under keyword "boxplot": 'If outliers are not drawn they do not contribute to autoscaling'.
Tested on windows with both gp528-win64-mingw.7z as well as a build from current 5.5p0 branch (2020-05-03), both wxt and win terminal.
Fixed in the upstream source and can be tested in the version 5.4 -rc1 pre-release package
Thanks for the hint of the 5.4-rc1 release.
Tested with gp54rc1-win64-mingw.7z, but the bug is still present.
Same happens with a recent build from the master branch.
I see that there is a commit dated 2019-05-17 "when boxplot outliers are not drawn they should not affect autoscaling". But apparently it still does not work. Hence this ticket.
See the attached screenshot.
Am I doing something wrong?
My apologies. I see you are correct that your test case exposes a problem. I was assuming that the previous fix took care of it and failed to test the example you provided.
Fixed now. Somehow lines were lost from the previous fix. The mechanism to fix it was there, but it wasn't actually called when needed.
will be in 5.4 -rc2
Unfortunately this broke autoscaling of the x-axis when outliers are enabled, for example:
Will result in 'x range is invalid'.
This is a WIP fix I'm testing:
Last edit: corngood 2021-04-14