PDLPorters / PDLPorters/PDL-Graphics-Gnuplot

Add 'image' curve option: 'pixels'

Open
#107 0 comments 0 reactions 1 assignee View on GitHub

@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-no-pixels

test-pixels.svg: test-pixels

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.