azredwing has asked for the wisdom of the Perl Monks concerning the following question:
I stumbled up GD::Graph and it looks like the exact module I want to use to create graphs with in a script of mine. The thing is, apparently I cannot set the origin of a scatter plot to the bottom left corner of the plot. The y-axis zero point begins at the bottom left corner, but the x-axis zero point is some distance away from that corner.
So say I wanted to graph y=x: the points are (0,0), (1,1), etc. When I graph the function, it's shifted over to the right and doesn't intersect the origin of the graph. (If you're being pedantic, it intersects the origin but the origin isn't the bottom left corner of the screen.)
I went over the manpage at CPAN about a billion times, and I can't find how to move the x-axis zero point. Can anyone help me out here, or refer me to a module that can? I need to be able to do multiple plots on the same graph.
Thanks for the help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using GD::Graph and setting the origin
by zentara (Cardinal) on Jul 10, 2008 at 11:16 UTC | |
|
Re: Using GD::Graph and setting the origin
by explodec14 (Novice) on Jan 07, 2010 at 12:18 UTC | |
|
Re: Using GD::Graph and setting the origin
by Anonymous Monk on Jul 10, 2008 at 08:47 UTC | |
by moritz (Cardinal) on Jul 10, 2008 at 08:56 UTC | |
by Anonymous Monk on Jul 10, 2008 at 16:23 UTC |