bar(1,[2 1 3],"stacked") starts plotting at ymin=1 instead of 0. + some issues with argins checking (regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
bar(1,[2 1 3],"stacked")
starts plotting at gca().data_bounds(3)==ymin=1 instead of 0.
Consequence: scf(); bar(1,[1 2 3],"stacked") displays only 2 parts. The first part from 0 to 1 is clipped.
Work-around: gca().data_bounds(3)=0; // data are correct
remark: this bug was brought by Scilab 5.4.1 (5.4.0 was OK) and still occurs with Scilab 6.0.0
Other issue:
--> bar(1,[1 2 3],[],[],"stacked")
at line 141 of function bar ( SCI\modules\graphics\macros\bar.sci line 154 )
Undefined variable: X //???? X=1
remark: this occurs from Scilab 4.1.2 to Scilab 6.0.0
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
bar(1,[1 2 3],"stacked") // ymin must be 0, not 1
bar(1,[1 2 3],[],[],"stacked")
OTHER INFORMATION:
------------------