summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Marechal <pierre.marechal@scilab.org>2007-11-29 09:27:15 +0000
committerPierre Marechal <pierre.marechal@scilab.org>2007-11-29 09:27:15 +0000
commitc2c9ce0d64cd2fbf7793c4b920b631fc359172a1 (patch)
tree51f10b413258ff7860a61ec31de617b0c64038cd
parentb859b7635da09e3b41704969177f143a7528eb5d (diff)
downloadscilab-c2c9ce0d64cd2fbf7793c4b920b631fc359172a1.zip
scilab-c2c9ce0d64cd2fbf7793c4b920b631fc359172a1.tar.gz
Add Non-Regression and Interactive test : bug 841
-rwxr-xr-xscilab/modules/graphics/nonreg_tests/bug_841.tst36
-rwxr-xr-xtests/nonRegression/nonreg_interactif/bug841.sci11
2 files changed, 36 insertions, 11 deletions
diff --git a/scilab/modules/graphics/nonreg_tests/bug_841.tst b/scilab/modules/graphics/nonreg_tests/bug_841.tst
new file mode 100755
index 0000000..cb2b334
--- /dev/null
+++ b/scilab/modules/graphics/nonreg_tests/bug_841.tst
@@ -0,0 +1,36 @@
1// <-- INTERACTIVE TEST -->
2//
3// <-- Non-regression test for bug 841 -->
4//
5// <-- Bugzilla URL -->
6// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=841
7//
8// <-- Short Description -->
9
10// Ordinate of a plot is not properly calculated,
11// so that the numbers on the left axis are unequally spaced.
12// This is best understood by an example (see below "Steps to
13// reproduce bug")
14
15// x = [0:0.1:5]';
16// y = cos(x);
17// plot2d(x,y); // BUG: ordinate show -0.9, -0.6, -0.4, etc...
18// // So the first delta is 0.3 and then 0.2.
19// plot2d([0,5],[0,0]); // By plotting the zero line, we clearly
20// // see it doesn't go through zero.
21
22// Pierre MARECHAL - Scilab Project
23// Copyright INRIA
24// 29 novembre 2007
25
26 // Non reg test on string format in 2D Axes
27
28a = gca();
29a.tight_limits = 'on';
30x = [0:0.1:5]';
31y = cos(x);
32plot2d(x,y); // 3 numbers after comma // CHECK HERE
33plot2d([0,5],[0,0]); // the zero is well placed // CHECK HERE
34
35// pretty display test:
36a.tight_limits="off"; // CHECK HERE
diff --git a/tests/nonRegression/nonreg_interactif/bug841.sci b/tests/nonRegression/nonreg_interactif/bug841.sci
deleted file mode 100755
index 3599dbd..0000000
--- a/tests/nonRegression/nonreg_interactif/bug841.sci
+++ /dev/null
@@ -1,11 +0,0 @@
1 // Non reg test on string format in 2D Axes
2
3 a=gca();
4 a.tight_limits='on';
5 x=[0:0.1:5]';
6 y=cos(x);
7 plot2d(x,y); // 3 numbers after comma // CHECK HERE
8 plot2d([0,5],[0,0]); // the zero is well placed // CHECK HERE
9
10 // pretty display test:
11 a.tight_limits="off" // CHECK HERE \ No newline at end of file