PDLPorters / PDLPorters/PDL-Graphics-Gnuplot
Add 'image' curve option: 'pixels'
Open
@zmughal is already working on this.
Since Mar 8, 2025.
- Dominant language
- Perl
- Stars
- 9
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
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-pixels.svg:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.