1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2010 - DIGITEO - Vincent COUVERT <vincent.couvert@scilab.org>
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- ENGLISH IMPOSED -->
9 // <-- LONG TIME EXECUTION -->
10 // Unitary test for conversion of Matlab function: AXIS
11 exec("SCI/modules/m2sci/tests/unit_tests/utils/m2sciTestConversionNoExe.sci", -1);
12 mprintf("%s\n", m2sciTestConversionNoExe("AXIS"));
13 ****** Beginning of mfile2sci() session ******
14 File to convert: SCI/modules/m2sci/tests/unit_tests/mfilesnoexec/AXIS.m
15 Result file path: TMPDIR/
17 Only double values used in M-file: NO
19 Generate formatted code: YES
22 Syntax modification...
23 Syntax modification: Done
24 Macro to tree conversion...
25 Conversion of M-tree...
26 !! L.12: No Scilab equivalent for: axis([xmin,xmax,ymin,ymax,zmin,zmax,cmin,cmax])
27 L.13: Unknown variable axis is a M-file.
28 !! L.18: No Scilab equivalent for: axis("fill")
29 !! L.24: No Scilab equivalent for: axis("image")
30 !! L.25: cube_scaling only used in 3d mode.
31 !! L.27: No Scilab equivalent for: axis("normal")
32 !! L.42: cube_scaling only used in 3d mode.
33 Conversion of M-tree: Done
34 TESTING M2SCI: creating varslist file...
35 Macro to tree conversion: Done
36 Translation may be wrong (see the //!! comments).
37 ****** End of mfile2sci() session ******
38 // Test file for function axis()
40 // Matlab version: 6.5.1.199709 (R13) Service Pack 1
42 // Copyright 2020 - Samuel GOUGEON
51 gca().data_bounds = [xmin,xmax,ymin,ymax];
52 gca().data_bounds = [xmin,xmax,ymin,ymax,zmin,zmax];
53 axis([xmin,xmax,ymin,ymax,zmin,zmax,cmin,cmax])
54 v = get(gca(),"data_bounds");
55 gca().auto_scale = "on";
56 gca().auto_scale = "off";
57 gca().tight_limits = "on";
59 gca().axes_reverse(2) = "on";
60 gca().axes_reverse(2) = "off";
63 gca().cube_scaling = "on";
66 gca().axes_visible = "off";
67 gca().axes_visible = "on";
69 h1.axes_reverse(2) = "on";
70 h1.axes_reverse(2) = "off";
72 %v0.auto_scale = "on";
74 %v0(:).axes_reverse(:,2) = "on";
75 %v0(:).axes_reverse(:,2) = "off";
76 [mode,visibility,direction] = mtlb_axis("state")
77 gca().auto_scale = "on";
78 gca().cube_scaling = "on";
79 gca().tight_limits = "on";
80 h2.auto_scale = "off";
81 h2.data_bounds = [xmin,xmax,ymin,ymax];