|
From: Craig D. <def...@bo...> - 2017-06-25 21:21:37
|
It appears that the new dumb terminal doesn’t distinguish between line types.
This is the output from the dumb terminal, using PDL::Graphics::Gnuplot on one of our
test suite cases. First, Gnuplot 5.0. Second, Gnuplot 5.2rc1.
Aesthetically, I can see the advantage of using symbols for each line or for the
plus-dash style. But the current code doesn’t seem to have any distinction between
different line types.
Comments?
(I can supply the Perl-generated gnuplot scripts on demand, but it should be clear from
context — these are very simple plots…)
Best,
Craig
--------
pdl> $w = gpwin(dumb,size=>[79,24,’ch’],output=>’/dev/tty’);
pdl> print "Gnuplot 5.0: "; $w->line(xvals(50),xvals(50)**2,{},xvals(50),40*xvals(50))
Gnuplot 5.0:
2500 +-+----+------+-----+------+------+------+------+-----+------+----+-+
+ + + + + + + + + + ***+
| * |
| ** |
2000 +-+ *** ###+
| * #### |
| ***### |
| ##**## |
1500 +-+ ####** +-+
| #### ** |
| ##### *** |
1000 +-+ #### *** +-+
| #### *** |
| ##### **** |
| ##### ** |
500 +-+ #### **** +-+
| #### ***** |
| ###### ***** |
+ #### + ********+ + + + + + + +
0 ************--+-----+------+------+------+------+-----+------+----+-+
0 5 10 15 20 25 30 35 40 45 50
pdl> $w = gpwin(dumb,size=>[79,24,’ch’],output=>’/dev/tty’);
pdl> print "Gnuplot 5.2rc1: "; $w->line(xvals(50),xvals(50)**2,{},xvals(50),40*xvals(50))
Gnuplot 5.2rc1:
2500 +-------------------------------------------------------------------+
| + + + + + + + + + -+|
| ++ |
| -+ |
2000 |-+ + -+|
| +-+ -+++ |
| ++-++ |
| +-++ |
1500 |-+ ++-++ +-|
| ++-+ + |
| -++-+ -++ |
| -+++ ++ |
1000 |-+ -+++ +-+ +-|
| -+++ +-+ |
| +-++ -++ |
| +-++ -+++ |
500 |-+ ++-++ -+++ +-|
| ++-+ +-++ |
| -++-+ ++-++ |
| -+++ + ++-+++-+ + + + + + + + |
0 +-------------------------------------------------------------------+
0 5 10 15 20 25 30 35 40 45 50
|