diff --git a/t/plots.t b/t/plots.t index bd07d0e..8b8b287 100644 --- a/t/plots.t +++ b/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: { diff --git a/t/timefmt-with-vnl-with-style.ref b/t/timefmt-with-vnl-with-style.ref new file mode 100644 index 0000000..5d74266 --- /dev/null +++ b/t/timefmt-with-vnl-with-style.ref @@ -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 + diff --git a/t/timefmt-with-vnl-with-style0-default1.ref b/t/timefmt-with-vnl-with-style0-default1.ref new file mode 100644 index 0000000..e8ceaa2 --- /dev/null +++ b/t/timefmt-with-vnl-with-style0-default1.ref @@ -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 + diff --git a/t/timefmt-without-vnl-with-style.ref b/t/timefmt-without-vnl-with-style.ref new file mode 100644 index 0000000..5d74266 --- /dev/null +++ b/t/timefmt-without-vnl-with-style.ref @@ -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 + diff --git a/t/timefmt-without-vnl-with-style0-default1.ref b/t/timefmt-without-vnl-with-style0-default1.ref new file mode 100644 index 0000000..e8ceaa2 --- /dev/null +++ b/t/timefmt-without-vnl-with-style0-default1.ref @@ -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 + diff --git a/t/timefmt-without-vnl.ref b/t/timefmt-without-vnl.ref new file mode 100644 index 0000000..74b2798 --- /dev/null +++ b/t/timefmt-without-vnl.ref @@ -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 +