JpGraph Community
September 08, 2010, 12:58:40 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Vertical text lined up wrong  (Read 1622 times)
0 Members and 1 Guest are viewing this topic.
frits
Newbie
*
Posts: 4


View Profile
« on: March 04, 2010, 09:15:58 am »

Hello,

Since I upgraded from PHP vs 5.2.12. to 5.2.13 the vertical text , lines up on top of the font when using the arial fonts.
The horizontal text is still OK.
I'm not sure whether this is a PHP or JpGraph issue.
The next code (using example14.php) goes well in PHP-5.2.12 but wrong using PHP-5.2.13.

Code:
<?php // content="text/plain; charset=utf-8"
require_once ('jpgraph/jpgraph.php');
require_once (
'jpgraph/jpgraph_error.php');

$errdatay = array(11,9,2,4,19,26,13,19,7,12);

// Create the graph. These two calls are always required
$graph = new Graph(300,200);
$graph->SetScale("textlin");

$graph->img->SetMargin(40,30,20,40);
$graph->SetShadow();

// Create the error plot
$errplot=new ErrorPlot($errdatay);
$errplot->SetColor("red");
$errplot->SetWeight(2);
$errplot->SetCenter();

// Add the plot to the graph
$graph->Add($errplot);

$graph->title->Set("Simple error plot");
$graph->xaxis->title->Set("OK, this is better");
$graph->yaxis->title->SetMargin(8);
$graph->yaxis->title->Set("Text lined up on top");

$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->yaxis->title->SetFont(FF_ARIAL,FS_BOLD,11);
$graph->xaxis->title->SetFont(FF_ARIAL,FS_BOLD,11);

$datax $gDateLocale->GetShortMonth();
$graph->xaxis->SetTickLabels($datax);

// Display the graph
$graph->Stroke();
?>

Logged
malonso
Newbie
*
Posts: 4


View Profile Email
« Reply #1 on: April 05, 2010, 02:51:12 pm »

I'm seeing the same exact thing.  Were you ever able to identify the issue or a workaround?

Thanks
Logged
malonso
Newbie
*
Posts: 4


View Profile Email
« Reply #2 on: April 05, 2010, 03:06:39 pm »

Hey Frits,

It looks like it is a PHP issue (http://bugs.php.net/bug.php?id=51207).  I'm probably going to revert back to php 5.2.12 at some point today and see if that solves the problem.  I'll post anything I find out.

Cheers
Logged
frits
Newbie
*
Posts: 4


View Profile
« Reply #3 on: June 20, 2010, 09:03:21 am »

I tried php-5.2.14RC1 and the vertical text looks OK again.
So I hope the next stable release will keep it that way.
Logged
jonusb
jpGraph Groupie in training
**
Posts: 9


View Profile Email
« Reply #4 on: August 20, 2010, 09:30:39 am »

However mean your life is, meet ottawa escort it and live it; do not shun it and call it hard names. It is not so bad as you are. It looks poorest when you are richest. The faultfinder ottawa escorts will find faults in paradise. Love your life, poor as it is. You may perhaps have some pleasant, thrilling, ottawa asian escort glorious hours, even in a poorhouse. The setting sun is reflected from the windows of the ottawa asian escorts alms-house as brightly as from the rich man's abode
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.034 seconds with 18 queries.