Skip Menu |
 

This queue is for tickets about the Chart-Gnuplot CPAN distribution.

Report information
The Basics
Id: 128614
Status: open
Priority: 0/
Queue: Chart-Gnuplot

People
Owner: Nobody in particular
Requestors: ambs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



If the paths sent to the output option are absolute paths, the module doesn't work properly.
Subject: Re: [rt.cpan.org #128614]
Date: Mon, 25 Feb 2019 09:56:27 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Ka-Wai Mak <kwmak [...] cpan.org>
Download (untitled) / with headers
text/plain 637b
Hi, Is there any error message? And could you provide an example code? Alberto Simões via RT <bug-Chart-Gnuplot@rt.cpan.org> 於 2019年2月25日 週一 上午12:05寫道: Show quoted text
> Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > Transaction: Ticket created by AMBS > Queue: Chart-Gnuplot > Subject: (No subject given) > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ambs@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > If the paths sent to the output option are absolute paths, the module > doesn't work properly. >
CC: "ambs [...] cpan.org" <ambs [...] cpan.org>
Subject: Re: [rt.cpan.org #128614]
Date: Mon, 25 Feb 2019 09:25:22 +0000
To: "bug-Chart-Gnuplot [...] rt.cpan.org" <bug-Chart-Gnuplot [...] rt.cpan.org>
From: Alberto Simões <ambs [...] zbr.pt>
Download (untitled) / with headers
text/plain 1006b
Hi Basically if I say '/tmp/plot', I get a imagemagick error message about /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot or something like that. Thanks Alberto Simões ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT <bug-Chart-Gnuplot@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > Hi, Is there any error message? And could you provide an example code? > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > 上午12:05寫道: >
> > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > Transaction: Ticket created by AMBS > > Queue: Chart-Gnuplot > > Subject: (No subject given) > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: ambs@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > If the paths sent to the output option are absolute paths, the module > > doesn't work properly.
Subject: Re: [rt.cpan.org #128614]
Date: Mon, 25 Feb 2019 17:39:12 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Ka-Wai Mak <kwmak [...] cpan.org>
Download (untitled) / with headers
text/plain 1.3k
I see. The image format is unknown. Please try e.g. "/tmp/plot.png". Alberto Simões via RT <bug-Chart-Gnuplot@rt.cpan.org> 於 2019年2月25日 週一 下午5:33寫道: Show quoted text
> Queue: Chart-Gnuplot > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > Hi > > Basically if I say '/tmp/plot', I get a imagemagick error message about > /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot > or something like that. > Thanks > > > Alberto Simões > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT < > bug-Chart-Gnuplot@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > Hi, Is there any error message? And could you provide an example code? > > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > 上午12:05寫道: > >
> > > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > > Transaction: Ticket created by AMBS > > > Queue: Chart-Gnuplot > > > Subject: (No subject given) > > > Broken in: (no value) > > > Severity: (no value) > > > Owner: Nobody > > > Requestors: ambs@cpan.org > > > Status: new > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > If the paths sent to the output option are absolute paths, the module > > > doesn't work properly.
>
CC: "ambs [...] cpan.org" <ambs [...] cpan.org>
Subject: Re: [rt.cpan.org #128614]
Date: Mon, 25 Feb 2019 18:42:10 +0000
To: "bug-Chart-Gnuplot [...] rt.cpan.org" <bug-Chart-Gnuplot [...] rt.cpan.org>
From: Alberto Simões <asimoes [...] protonmail.com>
Download (untitled) / with headers
text/plain 1.7k
Hi Will try (busy day). Meanwhile, it is curious that if I use just a name (like 'plot') it works. Will give details as soon as I am able to look into it. Thanks Alberto Simões ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, 25 February 2019 09:40, Ka-Wai Mak via RT <bug-Chart-Gnuplot@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > I see. The image format is unknown. Please try e.g. "/tmp/plot.png". > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > 下午5:33寫道: >
> > Queue: Chart-Gnuplot > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > Hi > > Basically if I say '/tmp/plot', I get a imagemagick error message about > > /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot > > or something like that. > > Thanks > > Alberto Simões > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT < > > bug-Chart-Gnuplot@rt.cpan.org> wrote: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > Hi, Is there any error message? And could you provide an example code? > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > > 上午12:05寫道: > > >
> > > > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > > > Transaction: Ticket created by AMBS > > > > Queue: Chart-Gnuplot > > > > Subject: (No subject given) > > > > Broken in: (no value) > > > > Severity: (no value) > > > > Owner: Nobody > > > > Requestors: ambs@cpan.org > > > > Status: new > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > If the paths sent to the output option are absolute paths, the module > > > > doesn't work properly.
CC: "ambs [...] cpan.org" <ambs [...] cpan.org>
Subject: Re: [rt.cpan.org #128614]
Date: Fri, 01 Mar 2019 10:46:26 +0000
To: "bug-Chart-Gnuplot [...] rt.cpan.org" <bug-Chart-Gnuplot [...] rt.cpan.org>
From: Alberto Simões <asimoes [...] protonmail.com>
Download (untitled) / with headers
text/plain 2.2k
Hi I've put the filenames ending in .png. Also, the code uses $chart->png; but the created files are not png (are postscripts) If I remove the .png, I get png files (although without extension) Thanks Alberto Simões ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, 25 February 2019 18:48, Alberto Simões via RT <bug-Chart-Gnuplot@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > Hi > > Will try (busy day). > Meanwhile, it is curious that if I use just a name (like 'plot') it works. > Will give details as soon as I am able to look into it. > Thanks > > Alberto Simões > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Monday, 25 February 2019 09:40, Ka-Wai Mak via RT bug-Chart-Gnuplot@rt.cpan.org wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > I see. The image format is unknown. Please try e.g. "/tmp/plot.png". > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > 下午5:33寫道: > >
> > > Queue: Chart-Gnuplot > > > > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > Hi > > > Basically if I say '/tmp/plot', I get a imagemagick error message about > > > /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot > > > or something like that. > > > Thanks > > > Alberto Simões > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT < > > > bug-Chart-Gnuplot@rt.cpan.org> wrote: > > >
> > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > Hi, Is there any error message? And could you provide an example code? > > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > > > 上午12:05寫道: > > > >
> > > > > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > > > > Transaction: Ticket created by AMBS > > > > > Queue: Chart-Gnuplot > > > > > Subject: (No subject given) > > > > > Broken in: (no value) > > > > > Severity: (no value) > > > > > Owner: Nobody > > > > > Requestors: ambs@cpan.org > > > > > Status: new > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > If the paths sent to the output option are absolute paths, the module > > > > > doesn't work properly.
Subject: Re: [rt.cpan.org #128614]
Date: Mon, 4 Mar 2019 09:42:52 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Ka-Wai Mak <kwmak [...] cpan.org>
Download (untitled) / with headers
text/plain 2.8k
Hi, If the filename ended in .png, the module will convert the file to png automatically. However, putting "$chart->png" should just cause the program doing extra job. The resulting file should be kept png. Could you send me the program to diagnose? Alberto Simões via RT <bug-Chart-Gnuplot@rt.cpan.org> 於 2019年3月1日 週五 下午6:46寫道: Show quoted text
> Queue: Chart-Gnuplot > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > Hi > > I've put the filenames ending in .png. > Also, the code uses $chart->png; > but the created files are not png (are postscripts) > > If I remove the .png, I get png files (although without extension) > > Thanks > > > Alberto Simões > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Monday, 25 February 2019 18:48, Alberto Simões via RT < > bug-Chart-Gnuplot@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > Hi > > > > Will try (busy day). > > Meanwhile, it is curious that if I use just a name (like 'plot') it
> works.
> > Will give details as soon as I am able to look into it. > > Thanks > > > > Alberto Simões > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Monday, 25 February 2019 09:40, Ka-Wai Mak via RT
> bug-Chart-Gnuplot@rt.cpan.org wrote:
> >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > I see. The image format is unknown. Please try e.g. "/tmp/plot.png". > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > > 下午5:33寫道: > > >
> > > > Queue: Chart-Gnuplot > > > > > > > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > Hi > > > > Basically if I say '/tmp/plot', I get a imagemagick error message
> about
> > > > /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot > > > > or something like that. > > > > Thanks > > > > Alberto Simões > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > > On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT < > > > > bug-Chart-Gnuplot@rt.cpan.org> wrote: > > > >
> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > Hi, Is there any error message? And could you provide an example
> code?
> > > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日
> 週一
> > > > > 上午12:05寫道: > > > > >
> > > > > > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > > > > > Transaction: Ticket created by AMBS > > > > > > Queue: Chart-Gnuplot > > > > > > Subject: (No subject given) > > > > > > Broken in: (no value) > > > > > > Severity: (no value) > > > > > > Owner: Nobody > > > > > > Requestors: ambs@cpan.org > > > > > > Status: new > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > > If the paths sent to the output option are absolute paths, the
> module
> > > > > > doesn't work properly.
>
Download (untitled) / with headers
text/plain 3.1k
Ended up finding out that that is happening in case I use tilde expansion like this (see attach) On Sun Mar 03 20:43:34 2019, KWMAK wrote: Show quoted text
> Hi, > > If the filename ended in .png, the module will convert the file to png > automatically. However, putting > "$chart->png" should just cause the program doing extra job. The resulting > file should be kept png. > > Could you send me the program to diagnose? > > Alberto Simões via RT <bug-Chart-Gnuplot@rt.cpan.org> 於 2019年3月1日 週五 > 下午6:46寫道: >
> > Queue: Chart-Gnuplot > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > Hi > > > > I've put the filenames ending in .png. > > Also, the code uses $chart->png; > > but the created files are not png (are postscripts) > > > > If I remove the .png, I get png files (although without extension) > > > > Thanks > > > > > > Alberto Simões > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Monday, 25 February 2019 18:48, Alberto Simões via RT < > > bug-Chart-Gnuplot@rt.cpan.org> wrote: > >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > > Hi > > > > > > Will try (busy day). > > > Meanwhile, it is curious that if I use just a name (like 'plot') it
> > works.
> > > Will give details as soon as I am able to look into it. > > > Thanks > > > > > > Alberto Simões > > > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > On Monday, 25 February 2019 09:40, Ka-Wai Mak via RT
> > bug-Chart-Gnuplot@rt.cpan.org wrote:
> > >
> > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > I see. The image format is unknown. Please try e.g. "/tmp/plot.png". > > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日 週一 > > > > 下午5:33寫道: > > > >
> > > > > Queue: Chart-Gnuplot > > > > > > > > > > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > Hi > > > > > Basically if I say '/tmp/plot', I get a imagemagick error message
> > about
> > > > > /tmp/fdfhjds3e73ff/plot.tmp./tmp/plot > > > > > or something like that. > > > > > Thanks > > > > > Alberto Simões > > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > > > On Monday, 25 February 2019 01:57, Ka-Wai Mak via RT < > > > > > bug-Chart-Gnuplot@rt.cpan.org> wrote: > > > > >
> > > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > > Hi, Is there any error message? And could you provide an example
> > code?
> > > > > > Alberto Simões via RT bug-Chart-Gnuplot@rt.cpan.org 於 2019年2月25日
> > 週一
> > > > > > 上午12:05寫道: > > > > > >
> > > > > > > Sun Feb 24 11:05:21 2019: Request 128614 was acted upon. > > > > > > > Transaction: Ticket created by AMBS > > > > > > > Queue: Chart-Gnuplot > > > > > > > Subject: (No subject given) > > > > > > > Broken in: (no value) > > > > > > > Severity: (no value) > > > > > > > Owner: Nobody > > > > > > > Requestors: ambs@cpan.org > > > > > > > Status: new > > > > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128614 > > > > > > > > If the paths sent to the output option are absolute paths, the
> > module
> > > > > > > doesn't work properly.
> >
Subject: plot.pl
Download plot.pl
text/x-perl 442b
#!/usr/bin/env perl use warnings; use strict; use Chart::Gnuplot; my @x = (-10 .. 10); my @y = (0 .. 20); my $chart = Chart::Gnuplot->new( output => "~/plot.png", title => "Plot example", xlabel => "x", ylabel => "y" ); my $dataset = Chart::Gnuplot::DataSet->new( xdata => \@x, ydata => \@y, style => "points", ); my $func = Chart::Gnuplot::DataSet->new( func => "3*x+4" ); $chart->plot2d($dataset, $func);


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.