Skip Menu |

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

Report information
The Basics
Id: 100360
Status: resolved
Priority: 0/
Queue: Chart-Gnuplot

People
Owner: Nobody in particular
Requestors: mdidomenico [...] gmail.com
Cc:
AdminCc:

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



Subject: unable to plot labels
Date: Sat, 15 Nov 2014 13:40:58 -0500
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Michael Di Domenico <mdidomenico [...] gmail.com>
I've created a chart using the attached source code and datasets. However, I'd like to add some arbitrary labels showing the min/max/avg data values to the chart. but the sample labels don't seem to print. Can you shed any idea why? I'm using Perl 5.10.1 Chart::Gnuplot v0.21 Gnuplot v4.2.6 Centos v6.5 x64

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #100360] unable to plot labels
Date: Mon, 17 Nov 2014 10:13:27 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Ka-Wai Mak <kwmak [...] cpan.org>
The position of the label should be specified, e.g. $chart->label( position => '"1416045601", 0.5', # <--- position of the label. The x-position is surrounded by the quotation marks because it is in time format. text => "Labeled at (-2, 0.5)", fontcolor => 'blue' ); The fixed code and the output image are attached for reference. 2014-11-16 2:41 GMT+08:00 Michael Di Domenico via RT < bug-Chart-Gnuplot@rt.cpan.org>: Show quoted text
> Sat Nov 15 13:41:10 2014: Request 100360 was acted upon. > Transaction: Ticket created by mdidomenico@gmail.com > Queue: Chart-Gnuplot > Subject: unable to plot labels > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: mdidomenico@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > > I've created a chart using the attached source code and datasets. However, > I'd like to add some arbitrary labels showing the min/max/avg data values > to the chart. but the sample labels don't seem to print. Can you shed any > idea why? > > I'm using > Perl 5.10.1 > Chart::Gnuplot v0.21 > Gnuplot v4.2.6 > Centos v6.5 x64 > >

Message body is not shown because sender requested not to inline it.

Download foo.png
image/png 26.2k

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #100360] unable to plot labels
Date: Mon, 17 Nov 2014 08:05:44 -0500
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Michael Di Domenico <mdidomenico [...] gmail.com>
Oh, I see. I did not realize the x value in the position object was relative to the graph itself. Does this mean that I cannot use the label object to place text outside the graph area? I'd like to add a textual legend underneath the x-labels using data i derive from the graph. (ie a report on things like the min/max/avg throughput seen through the data) Thanks - Michael On Sun, Nov 16, 2014 at 9:14 PM, Ka-Wai Mak via RT < bug-Chart-Gnuplot@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > The position of the label should be specified, e.g. > > $chart->label( > position => '"1416045601", 0.5', # <--- position of the label. > The x-position is surrounded by the quotation marks because it is in time > format. > text => "Labeled at (-2, 0.5)", > fontcolor => 'blue' > ); > > The fixed code and the output image are attached for reference. > > > 2014-11-16 2:41 GMT+08:00 Michael Di Domenico via RT < > bug-Chart-Gnuplot@rt.cpan.org>: >
> > Sat Nov 15 13:41:10 2014: Request 100360 was acted upon. > > Transaction: Ticket created by mdidomenico@gmail.com > > Queue: Chart-Gnuplot > > Subject: unable to plot labels > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: mdidomenico@gmail.com > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > > > > > I've created a chart using the attached source code and datasets.
> However,
> > I'd like to add some arbitrary labels showing the min/max/avg data values > > to the chart. but the sample labels don't seem to print. Can you shed
> any
> > idea why? > > > > I'm using > > Perl 5.10.1 > > Chart::Gnuplot v0.21 > > Gnuplot v4.2.6 > > Centos v6.5 x64 > > > >
> >
Subject: Re: [rt.cpan.org #100360] unable to plot labels
Date: Tue, 18 Nov 2014 01:27:08 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org
From: Ka-Wai Mak <kwmak [...] cpan.org>
Yes, you can. You may add the keyword "screen" before the position values to refer to the position relative to the image (0 means bottom and 1 means top), e.g. position => 'screen 0.5, screen 0', will put the label in the bottom center of the image. 2014-11-17 21:05 GMT+08:00 Michael Di Domenico via RT < bug-Chart-Gnuplot@rt.cpan.org>: Show quoted text
> Queue: Chart-Gnuplot > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > Oh, I see. I did not realize the x value in the position object was > relative to the graph itself. Does this mean that I cannot use the label > object to place text outside the graph area? I'd like to add a textual > legend underneath the x-labels using data i derive from the graph. (ie a > report on things like the min/max/avg throughput seen through the data) > > Thanks > - Michael > > On Sun, Nov 16, 2014 at 9:14 PM, Ka-Wai Mak via RT < > bug-Chart-Gnuplot@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > > > The position of the label should be specified, e.g. > > > > $chart->label( > > position => '"1416045601", 0.5', # <--- position of the label. > > The x-position is surrounded by the quotation marks because it is in time > > format. > > text => "Labeled at (-2, 0.5)", > > fontcolor => 'blue' > > ); > > > > The fixed code and the output image are attached for reference. > > > > > > 2014-11-16 2:41 GMT+08:00 Michael Di Domenico via RT < > > bug-Chart-Gnuplot@rt.cpan.org>: > >
> > > Sat Nov 15 13:41:10 2014: Request 100360 was acted upon. > > > Transaction: Ticket created by mdidomenico@gmail.com > > > Queue: Chart-Gnuplot > > > Subject: unable to plot labels > > > Broken in: (no value) > > > Severity: (no value) > > > Owner: Nobody > > > Requestors: mdidomenico@gmail.com > > > Status: new > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100360 > > > > > > > > > > I've created a chart using the attached source code and datasets.
> > However,
> > > I'd like to add some arbitrary labels showing the min/max/avg data
> values
> > > to the chart. but the sample labels don't seem to print. Can you shed
> > any
> > > idea why? > > > > > > I'm using > > > Perl 5.10.1 > > > Chart::Gnuplot v0.21 > > > Gnuplot v4.2.6 > > > Centos v6.5 x64 > > > > > >
> > > >
> >