1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2018 - Samuel GOUGEON
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- INTERACTIVE TEST -->
10 // <-- Non-regression test for bug 5567 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/5567
15 // <-- Short Description -->
16 // * bar() did not allow skipping the bar width input with []
17 // * bar() did not allow to specify multiple colors for multiple bars series
18 // * Only 10 colors names were accepted instead of the full list of predefined
25 bar(y, "wheat"); // default x = [1 2 3]
28 bar(1,[1 2 3]); // default colors (not bugged)
31 bar(1,[2 3 4],"pink") // single named color => replicated
34 bar(1,y, ["green" "orange" "#AA6655"]);
35 //bar(1,[1 2 3],"stacked"); // default colors
36 // starts plotting at ymin=1 instead of 0 == http://bugzilla.scilab.org/15403
44 bar(x,y, [], ["green" "#55AA31" "orange"]);
47 bar(x,y, [], ["green" "orange" "yellow" "wheat"]); // extra colors ignored (wheat)
58 bar(x, y, [], ["green" "#55AA31" "orange"], "stacked");