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

Add 'image' curve option: 'pixels' #107

Open
zmughal opened this issue Dec 21, 2024 · 0 comments
Open

Add 'image' curve option: 'pixels' #107

zmughal opened this issue Dec 21, 2024 · 0 comments

Comments

@zmughal
Copy link
Member

zmughal commented Dec 21, 2024

See http://www.bersch.net/gnuplot-doc/image.html. This avoids interpolation with certain terminals such as SVG.

Current workaround using deprecated "complex 'with'":

#!/usr/bin/env perl
use feature qw(say);
use PDL;
use PDL::Graphics::Gnuplot;

my $z = rvals(3,3);
my $gp;

$gp = gpwin('svg', output => 'test-no-pixels.svg' );
$gp->plot( { with => 'image' }, $z );
say $gp->{last_plotcmd};

$gp = gpwin('svg', output => 'test-pixels.svg' );
$gp->plot( { with => 'image pixels' }, $z );
say $gp->{last_plotcmd};

test-no-pixels.svg: test-no-pixels

test-pixels.svg: test-pixels

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