1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2009 - DIGITEO - pierre.lando@scilab.org
5 //// This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- TEST WITH GRAPHIC -->
10 // <-- Non-regression test for bug 4964 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=4964
15 // <-- Short Description -->
16 // set or get 'format_n' property from an axes crash scilab.
19 plot2d(1:10,1:10,1,strf="020")
20 drawaxis(x=2:7,y=4,dir='u',tics='v')
22 assert_checkequal(e.format_n, "");
23 // Check that the display does not crash
24 e.format_n = "%0.0fcm"
25 assert_checkequal(e.format_n, "%0.0fcm");
26 assert_checkequal(e.tics_labels, string(2:7)+"cm");