Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.0

Bug #5607 X Axis Labels align to right
Submitted: 2005-10-05 08:55 UTC
From: markhobden at gmail dot com Assigned: nosey
Status: Closed Package: Image_Graph
PHP Version: 5.0.5 OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 34 - 15 = ?

 
 [2005-10-05 08:55 UTC] markhobden at gmail dot com
Description: ------------ X Axis titles align to the right since version 0.6.0. Here is an example of it happening: http://pear.veggerby.dk/samples/samples/output/secondary_axis.png The included patch seems to fix the problem for me. Thank-you. Mark Test script: --------------- Index: Axis.php =================================================================== --- Axis.php (revision 360) +++ Axis.php (working copy) @@ -1396,7 +1396,7 @@ $this->_canvas->line($data); if ($this->_title) { - if ($this->_transpose) { + if (!$this->_transpose) { $y = $this->_bottom; $x = $this->_left + $this->width() / 2; $this->write($x, $y, $this->_title, IMAGE_GRAPH_ALIGN_CENTER_X + IMAGE_GRAPH_ALIGN_BOTTOM, $this->_getTitleFont());

Comments

 [2005-10-05 17:31 UTC] nosey
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. That does indeed seem to fix it. Thanks