mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
added timefmt, style, vnl tests
This commit is contained in:
parent
2a91bd742e
commit
0e79551f2b
38
t/plots.t
38
t/plots.t
@ -183,6 +183,44 @@ tryplot( testname => 'Error bars (using tuplesize, tuplesizeall)',
|
||||
qw(--xmin 1 --xmax 5 --ymin 0.5 --ymax 5.5)],
|
||||
refplot => 'error-bars-using-tuplesize-tuplesizeall.ref' );
|
||||
|
||||
tryplot( testname => 'timefmt without vnl',
|
||||
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
|
||||
options => [qw(--lines --points --domain --timefmt), '%H:%M',
|
||||
'--set', 'format x "%H:%M"'],
|
||||
refplot => 'timefmt-without-vnl.ref' );
|
||||
|
||||
tryplot( testname => 'timefmt without vnl with style 0 default 1',
|
||||
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
|
||||
options => [qw(--domain --timefmt), '%H:%M',
|
||||
'--set', 'format x "%H:%M"',
|
||||
'--style', '0', 'with lines lt 7'],
|
||||
refplot => 'timefmt-without-vnl-with-style0-default1.ref' );
|
||||
|
||||
tryplot( testname => 'timefmt without vnl with style',
|
||||
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
|
||||
options => [qw(--domain --timefmt), '%H:%M',
|
||||
'--set', 'format x "%H:%M"',
|
||||
'--style', '0', 'with lines lt 7',
|
||||
'--style', '1', 'with lines lt 5' ],
|
||||
refplot => 'timefmt-without-vnl-with-style.ref' );
|
||||
|
||||
tryplot( testname => 'timefmt with vnl with style 0 default 1',
|
||||
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
|
||||
options => [qw(--domain --timefmt), '%H:%M',
|
||||
'--set', 'format x "%H:%M"',
|
||||
'--vnl',
|
||||
'--style', 'a', 'with lines lt 7'],
|
||||
refplot => 'timefmt-with-vnl-with-style0-default1.ref' );
|
||||
|
||||
tryplot( testname => 'timefmt with vnl with style',
|
||||
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
|
||||
options => [qw(--domain --timefmt), '%H:%M',
|
||||
'--set', 'format x "%H:%M"',
|
||||
'--vnl',
|
||||
'--style', 'a', 'with lines lt 7',
|
||||
'--style', 'b', 'with lines lt 5' ],
|
||||
refplot => 'timefmt-with-vnl-with-style.ref' );
|
||||
|
||||
|
||||
SKIP:
|
||||
{
|
||||
|
39
t/timefmt-with-vnl-with-style.ref
Normal file
39
t/timefmt-with-vnl-with-style.ref
Normal file
@ -0,0 +1,39 @@
|
||||
10 +------------------------------------------------------------------------------------------+
|
||||
| + + =+ = + + + + + ==|
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = == = |
|
||||
| = = = |
|
||||
9 |-+ = = == +-|
|
||||
| = == = @@|
|
||||
| = = = @ |
|
||||
| = == == @ |
|
||||
| = = = @@ |
|
||||
| = == == @ |
|
||||
| = = = @ |
|
||||
8 |-+ = = = @@ +-|
|
||||
| = == == @ |
|
||||
| = = = @ |
|
||||
| = == = @@ |
|
||||
| = = == @ |
|
||||
| = = = @@ |
|
||||
| = == = @ |
|
||||
| = == @ |
|
||||
7 |-+ = = @@ +-|
|
||||
| = @ |
|
||||
| = @ |
|
||||
| = @@ |
|
||||
| = @ |
|
||||
| = @ |
|
||||
| = @@ |
|
||||
6 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
|= + + + + + + + + |
|
||||
5 +------------------------------------------------------------------------------------------+
|
||||
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30
|
||||
|
39
t/timefmt-with-vnl-with-style0-default1.ref
Normal file
39
t/timefmt-with-vnl-with-style0-default1.ref
Normal file
@ -0,0 +1,39 @@
|
||||
10 +------------------------------------------------------------------------------------------+
|
||||
| + + =+ = + + + + + ==|
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = == = |
|
||||
| = = = |
|
||||
9 |-+ = = == +-|
|
||||
| = == = |
|
||||
| = = = |
|
||||
| = == == |
|
||||
| = = = |
|
||||
| = == == |
|
||||
| = = = |
|
||||
8 |-+ = = = +-|
|
||||
| = == == |
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = == |
|
||||
7 |-+ = = +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
6 |-+ = B B +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
|= + + + + + + + + |
|
||||
5 +------------------------------------------------------------------------------------------+
|
||||
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30
|
||||
|
39
t/timefmt-without-vnl-with-style.ref
Normal file
39
t/timefmt-without-vnl-with-style.ref
Normal file
@ -0,0 +1,39 @@
|
||||
10 +------------------------------------------------------------------------------------------+
|
||||
| + + =+ = + + + + + ==|
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = == = |
|
||||
| = = = |
|
||||
9 |-+ = = == +-|
|
||||
| = == = @@|
|
||||
| = = = @ |
|
||||
| = == == @ |
|
||||
| = = = @@ |
|
||||
| = == == @ |
|
||||
| = = = @ |
|
||||
8 |-+ = = = @@ +-|
|
||||
| = == == @ |
|
||||
| = = = @ |
|
||||
| = == = @@ |
|
||||
| = = == @ |
|
||||
| = = = @@ |
|
||||
| = == = @ |
|
||||
| = == @ |
|
||||
7 |-+ = = @@ +-|
|
||||
| = @ |
|
||||
| = @ |
|
||||
| = @@ |
|
||||
| = @ |
|
||||
| = @ |
|
||||
| = @@ |
|
||||
6 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
|= + + + + + + + + |
|
||||
5 +------------------------------------------------------------------------------------------+
|
||||
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30
|
||||
|
39
t/timefmt-without-vnl-with-style0-default1.ref
Normal file
39
t/timefmt-without-vnl-with-style0-default1.ref
Normal file
@ -0,0 +1,39 @@
|
||||
10 +------------------------------------------------------------------------------------------+
|
||||
| + + =+ = + + + + + ==|
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = == = |
|
||||
| = = = |
|
||||
9 |-+ = = == +-|
|
||||
| = == = |
|
||||
| = = = |
|
||||
| = == == |
|
||||
| = = = |
|
||||
| = == == |
|
||||
| = = = |
|
||||
8 |-+ = = = +-|
|
||||
| = == == |
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = = == |
|
||||
| = = = |
|
||||
| = == = |
|
||||
| = == |
|
||||
7 |-+ = = +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
6 |-+ = B B +-|
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
| = |
|
||||
|= + + + + + + + + |
|
||||
5 +------------------------------------------------------------------------------------------+
|
||||
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30
|
||||
|
39
t/timefmt-without-vnl.ref
Normal file
39
t/timefmt-without-vnl.ref
Normal file
@ -0,0 +1,39 @@
|
||||
10 +------------------------------------------------------------------------------------------+
|
||||
| + + *+ * + + + + + **|
|
||||
| * * * |
|
||||
| * ** * |
|
||||
| * * ** |
|
||||
| * ** * |
|
||||
| * * * |
|
||||
9 |-+ * * ** +-|
|
||||
| * ** * ##|
|
||||
| * * * # |
|
||||
| * ** ** # |
|
||||
| * * * ## |
|
||||
| * ** ** # |
|
||||
| * * * # |
|
||||
8 |-+ * * * ## +-|
|
||||
| * ** ** # |
|
||||
| * * * # |
|
||||
| * ** * ## |
|
||||
| * * ** # |
|
||||
| * * * ## |
|
||||
| * ** * # |
|
||||
| * ** # |
|
||||
7 |-+ * A ## +-|
|
||||
| * # |
|
||||
| * # |
|
||||
| * ## |
|
||||
| * # |
|
||||
| * # |
|
||||
| * ## |
|
||||
6 |#############################B##############################B +-|
|
||||
| * |
|
||||
| * |
|
||||
| * |
|
||||
| * |
|
||||
| * |
|
||||
|* + + + + + + + + |
|
||||
5 +------------------------------------------------------------------------------------------+
|
||||
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30
|
||||
|
Loading…
Reference in New Issue
Block a user