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 // =============================================================================
7 // <-- TEST WITH GRAPHIC -->
9 // <-- Non-regression test for bug 4964 -->
11 // <-- Bugzilla URL -->
12 // http://bugzilla.scilab.org/show_bug.cgi?id=4964
14 // <-- Short Description -->
15 // set or get 'format_n' property from an axes crash scilab.
16 plot2d(1:10,1:10,1,strf="020")
17 drawaxis(x=2:7,y=4,dir='u',tics='v')
19 assert_checkequal(e.format_n, "");
20 // Check that the display does not crash
21 e.format_n = "%0.0fcm"
24 Handle of type "Axis" with properties:
25 ======================================
28 tics_direction = "top"
29 xtics_coord = [2,3,4,5,6,7]
35 tics_labels = ["2cm","3cm","4cm","5cm","6cm","7cm"]
38 labels_font_color = -1
40 fractional_font = "off"
45 assert_checkequal(e.format_n, "%0.0fcm");
46 assert_checkequal(e.tics_labels, string(2:7)+"cm");