Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2007, 04:49
sergi_climent
 
Fecha de Ingreso: enero-2005
Ubicación: Barcelona
Mensajes: 1.473
Antigüedad: 19 años, 3 meses
Puntos: 10
Aumentar tamaño de Label en PHPLOT

Hola,

uso PHPLot para generar graficos...

hay alguna manera de aumentar el tamaño de los labels del eje 'X' e 'Y'???

saludos y gracias de antemano

Solucionado:

Código PHP:
    function SetDefaultFonts()
    {
        
// TTF:
        
if ($this->use_ttf) {
            
//$this->SetTTFPath(dirname($_SERVER['PHP_SELF']));
            
$this->SetTTFPath(getcwd());
            
$this->SetFont('generic'$this->default_ttfont8);
            
$this->SetFont('title'$this->default_ttfont14);
            
$this->SetFont('legend'$this->default_ttfont8);
            
$this->SetFont('x_label'$this->default_ttfont6);
            
$this->SetFont('y_label'$this->default_ttfont6);
            
$this->SetFont('x_title'$this->default_ttfont10);
            
$this->SetFont('y_title'$this->default_ttfont10);
        }
        
// Fixed:
        
else {
            
$this->SetFont('generic'2);
            
$this->SetFont('title'5);
            
$this->SetFont('legend'2);
            
$this->SetFont('x_label'2);
            
$this->SetFont('y_label'2);           
            
$this->SetFont('x_title'3);
            
$this->SetFont('y_title'3);
        }

        return 
TRUE;
    } 
__________________
"Cada hombre es el hijo de su propio trabajo"
Miguel de Cervantes Saavedra
"La experiencia es algo que no consigues hasta justo depués de necesitarla"
Laurence Olivier

Última edición por sergi_climent; 18/04/2007 a las 05:19