Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mohawk2 opened this issue Mar 10, 2022 · 1 comment
Closed

Comments

@mohawk2
Copy link
Member

mohawk2 commented Mar 10, 2022

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
Copy link
Member Author

mohawk2 commented Apr 12, 2024

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.

@mohawk2 mohawk2 closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant