1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2009 - Digiteo - Jean-Baptiste Silvy
4//
5//  This file is distributed under the same license as the Scilab package.
6// =============================================================================
7
8// <-- TEST WITH GRAPHIC -->
9
10// <-- Non-regression test for bug 4093 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=4093
14//
15// <-- Short Description -->
16// plot2d overrides Y axis location set in default axes.
17//
18
19x = [0:0.1:2*%pi]';
20da = gda(); // get the handle of the model axes
21
22da.x_location = "origin";
23da.y_location = "origin";
24
25plot2d(x-2,sin(x))
26
27axes = gca();
28if (axes.x_location <> "origin") then pause; end
29if (axes.y_location <> "origin") then pause; end
30
31