PDLPorters / PDL-Graphics-Gnuplot

Gnuplot-based plotting backend for PDL
https://p3rl.org/PDL::Graphics::Gnuplot
Other
8 stars 7 forks source link

Points / lines limitation in Gnuplot 4.6 Qt terminal with replot? #88

Closed mohawk2 closed 7 months ago

mohawk2 commented 2 years ago

https://stackoverflow.com/questions/35782290/point-limitation-for-pdl-gnuplot-and-qt-terminal-using-replot shows:

use strict;
use warnings;

use PDL;
use PDL::Graphics::Gnuplot qw/gpwin/;

my $win = gpwin('qt', persist => 1);

foreach my $a (1..15) {
    my $x = sequence(101)/100;

    my $y = $a*$x;

    if ($a == 1) {
        $win->plot({ linecolor => 'black' }, $x, $y);
    }
    else {
        $win->replot({ linecolor => 'black' }, $x, $y);
    }
}

only showing 11 lines. (see SO question for more)

mohawk2 commented 7 months ago

With Gnuplot 5.4.2 here and qt, it showed 15 lines. It looks like this is solved, and it looks like it was indeed a Gnuplot problem.