RE: [PEAR] Image_Graph, X-Axis on top
| From: | Kilbride, James | Date: | Thu, 15 Sep 2005 20:35:30 +0000 |
| Subject: | RE: [PEAR] Image_Graph, X-Axis on top | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20997@lists.php.net to get a copy of this message | ||
With both of those the lables on the X Axis end up on the graph itself
not above the graph. What else needs to be done to move the labels above
the graph? Additionally I want them to be vertical labels, and that
really doens't look right when I do $AxisX->setFontAngle('vertical');.
> -----Original Message-----
> From: Jesper Veggerby Hansen [mailto:jesper@veggerby.dk]
> Sent: Thursday, September 15, 2005 4:29 PM
> To: Kilbride, James
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] Image_Graph, X-Axis on top
>
> Hi James,
>
> If you want the y-values to be inverted (i.e. 0 at top max at
> bottom) it can be done by:
>
> $AxisY =& $Plotarea->getAxis('y');
> $AxisY->setInverted(true);
>
> If not then you need to make the x-axis intersect the y-axis
> at the maximum:
>
> $AxisX =& $Plotarea->getAxis('x');
> $AxisX->setAxisIntersection('max');
>
> /Jesper
>
> Kilbride, James wrote:
> > In Image_Graph, what call do I need to make to move the X Axis from
> > the bottom to the top and to move the values to above the X axis?
> >
> > X values
> > ---------------------
> > Y|
> > |
> > |
> > |
> >
> > Type of thing. thanks.
> >
> > James Kilbride
> >
>