<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
-------------------------------------------------------------------------------
- Ministerio de EconomÃa
- meconlib
+ mlib
-------------------------------------------------------------------------------
-This file is part of meconlib.
+This file is part of mlib.
-meconlib is free software; you can redistribute it and/or modify it under
+mlib is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
-meconlib is distributed in the hope that it will be useful, but WITHOUT
+mlib is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Id: Graph.php 428 2003-11-18 14:30:30Z mmarre $
-----------------------------------------------------------------------------*/
-require_once 'MECON/Graph/external/jpgraph/src/jpgraph.php';
+require_once 'MLIB/Graph/external/jpgraph/src/jpgraph.php';
/**
* Liberia base para el manejo de graficos.
*/
-class MECON_Graph {
+class MLIB_Graph {
/**
* @return void
* @access public
*/
- function MECON_graph($tipo, $ancho=300, $alto=200,$titulo,$attrib_gral=NULL)
+ function MLIB_graph($tipo, $ancho=300, $alto=200,$titulo,$attrib_gral=NULL)
{
$this->_tipo=$tipo;
$this->_ancho= $ancho;
if(($this->_tipo=="torta")||($this->_tipo=="torta3D"))
{
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie.php';
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie3d.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie3d.php';
$this->_grafico= new PieGraph($ancho,$alto);
if ($tipo=="lineas")
{
$valido=true;
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_line.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_line.php';
$plot= new LinePlot($secuencia);
if (isset($atributos['colorRelleno']))
if ($tipo=="barras")
{
$valido=true;
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_bar.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_bar.php';
$plot= new BarPlot($secuencia);
if (isset($atributos['colorRelleno']))
if ($tipo=="puntos")
{
$valido=true;
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_scatter.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_scatter.php';
$plot= new ScatterPlot($secuencia);
if (isset($atributos['tipoMarca']))
*
* Ejemplo de Uso:
* @code
- * require_once 'MECON/Graph.php';
+ * require_once 'MLIB/Graph.php';
*
* $v1 = array(12,8,19,3,10,5);
* $v2 = array(1,28,9,13,1,5);
*
- * $graph =& new MECON_Graph ("xy", 300, 300, 'PRUEBA');
+ * $graph =& new MLIB_Graph ("xy", 300, 300, 'PRUEBA');
*
* $b1plot = $graph->agregarSecuencia("barras", $v1);
* $b2plot = $graph->agregarSecuencia("barras", $v2);
*
* Ejemplo de uso:
* @code
- * require_once 'MECON/Graph.php';
+ * require_once 'MLIB/Graph.php';
*
* $valores = array (4, 6, 23, 14, 30);
- * $nuevos = MECON_Graph::porcentajes($valores);
+ * $nuevos = MLIB_Graph::porcentajes($valores);
*
* // se obtiene (5, 8, 30, 18, 39) (%)
*
*/
function porcentajes ($valores)
{
- require_once 'MECON/Graph/external/jpgraph/src/jpgraph_pie.php';
+ require_once 'MLIB/Graph/external/jpgraph/src/jpgraph_pie.php';
$plot = new PiePlot ($valores);