Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: GD::Graph - data plotting off the charting area

by terra incognita (Pilgrim)
on Apr 08, 2005 at 20:35 UTC ( [id://446160]=note: print w/replies, xml ) Need Help??


in reply to GD::Graph - data plotting off the charting area

The activestate manual states

The range (y_min_value..y_max_value) has to include all the values of the data points, or GD::Graph will die with a message.

Which doesn't look like it is true, but it does appear to be causing your issue.
If you change your "Next Code Snippet" to
## Next code snippet goes here $graph->set( y_min_value => 4, y_max_value => 10, x_min_value => 1, x_max_value => 7 );
It will work correctly. The only difference being that the y_min_value and the x_min_value are within the range of the data.

Log In?
Username:
Password:

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

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

    No recent polls found