1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008-2008 - INRIA - Jean-Baptiste Silvy
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- TEST WITH GRAPHIC -->
10 // <-- Non-regression test for bug 3404 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=3404
15 // <-- Short Description -->
16 // Some problems come when an axis is set in log scale.
21 a.data_bounds = [1e-9,-20;10,10];
22 a.axes_visible = "on";
25 expectedLocations = 10^(-10:6:2)';
27 // compare the expected locations and the real ones
28 assert_checkalmostequal(expectedLocations, a.x_ticks.locations);
30 // now draw a segs object using this scale
31 xarrows([0.0001,0.01],[-15,1],5,1);
33 // check that the arrow is centered