Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

chart::gnuplot and labels?

by mdidomenico (Initiate)
on Nov 15, 2014 at 18:47 UTC ( [id://1107313]=perlquestion: print w/replies, xml ) Need Help??

mdidomenico has asked for the wisdom of the Perl Monks concerning the following question:

I've created a chart using the chart::gnuplot. 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 anyone shed any idea why?

if i strip out my datasets and plot a sample sin function, the label prints, but not if i include my data objects.

you can see the code over here:

https://rt.cpan.org/Public/Bug/Display.html?id=100360

I'm using

Perl 5.10.1

Chart::Gnuplot v0.21

Gnuplot v4.2.6

Centos v6.5 x64

Replies are listed 'Best First'.
Re: chart::gnuplot and labels?
by Loops (Curate) on Nov 15, 2014 at 20:53 UTC

    Hi, welcome to the monastery.

    Your code didn't specify any position for labels. If you want them on top of the graph, use graph coordinates with 0,0 being lower left and 1,1 being upper right. So change your code:

    $chart->label( text => "Labeled at (-2, 0.5)", fontcolor => 'blue', );
    To something like:
    $chart->label( text => "Labeled at 20% from left, 25% from top", fontcolor => 'blue', position => 'graph 0.2, graph 0.75' );

    You'll also want to close that bug report :o)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1107313]
Approved by boftx
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found