1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2007-2008 - INRIA
3 // Copyright (C) 2010 - DIGITEO - Allan CORNET
5 // This file is released under the 3-clause BSD license. See COPYING-BSD.
8 function demo_custom_bars()
12 my_handle = scf(100001);
13 clf(my_handle,"reset");
14 demo_viewCode("bars_custom.dem.sce");
16 my_plot_desc = "Custom bars";
17 my_handle.figure_name = my_plot_desc;
20 "plot2d(0,0,[0],''012'',''leg'',[0,0,30,20]);"
22 "t.text=""Custom bars""; t.font_size=3;"
23 "a.clip_state = ''clipgrf'';"
27 "xx=[x,x+d,x+2*d,x+3*d,x+4*d,x+5*d];"
28 "yy=[y,5*y,2*y,10*y,8*y,6*y];"
29 "xfpolys(xx,yy,2*[1 2 3 4 5 6]);a.clip_state = ''off'';"];
36 clear demo_custom_bars;