LinuxParty
PHPLOT es una clase PHP para la creación de gráficos y diagramas. Funciona con PHP5 (pero versiones también soporta versiones más antiguas como PHP4). PHPlot utiliza la extensión PHP GD para producir PNG, GIF o JPEG. Las Fuentes TrueType (TTF) son opcionales, o una función de fuentes de GD se pueden utilizar. Los tipos de gráficos disponibles son: área, barras, líneas / puntos, líneas, pastel, puntos, cuadrados, barra apilados, bar y delgadas-line. Etiquetas, marcas de graduación, leyenda parcela, ejes X / Y, y todos configurables. Las imágenes pueden ser importadas como fondo, varios gráficos se pueden dibujar en una imagen, y las imágenes se pueden guardar en el disco o devueltos a un navegador.
Este sería el código fuente:
<?php
# PHPlot Demo
# 2009-12-01 ljb
# For more information see http://sourceforge.net/projects/phplot/
# Load the PHPlot class library:
require_once 'phplot.php';
# Define the data array: Label, the 3 data sets.
# Year, Features, Bugs, Happy Users:
$data = array(
array('2001', 60, 35, 20),
array('2002', 65, 30, 30),
array('2003', 70, 25, 40),
array('2004', 72, 20, 60),
array('2005', 75, 15, 70),
array('2006', 77, 10, 80),
array('2007', 80, 5, 90),
array('2008', 85, 4, 95),
array('2009', 90, 3, 98),
);
# Create a PHPlot object which will make an 800x400 pixel image:
$p = new PHPlot(800, 400);
# Use TrueType fonts:
$p->SetDefaultTTFont('./arial.ttf');
# Set the main plot title:
$p->SetTitle('PHPlot Customer Satisfaction (estimated)');
# Select the data array representation and store the data:
$p->SetDataType('text-data');
$p->SetDataValues($data);
# Select the plot type - bar chart:
$p->SetPlotType('bars');
# Define the data range. PHPlot can do this automatically, but not as well.
$p->SetPlotAreaWorld(0, 0, 9, 100);
# Select an overall image background color and another color under the plot:
$p->SetBackgroundColor('#ffffcc');
$p->SetDrawPlotAreaBackground(True);
$p->SetPlotBgColor('#ffffff');
# Draw lines on all 4 sides of the plot:
$p->SetPlotBorderType('full');
# Set a 3 line legend, and position it in the upper left corner:
$p->SetLegend(array('Features', 'Bugs', 'Happy Users'));
$p->SetLegendWorld(0.1, 95);
# Turn data labels on, and all ticks and tick labels off:
$p->SetXDataLabelPos('plotdown');
$p->SetXTickPos('none');
$p->SetXTickLabelPos('none');
$p->SetYTickPos('none');
$p->SetYTickLabelPos('none');
# Generate and output the graph now:
$p->DrawGraph();

-
Android
- Crear aplicaciones Android con App Build Environment y Eclipse, Android SDK, Pho
- Programar aplicaciones Android en Linux (Eclipse/Android SDK/PhoneGap)
- Crear aplicaciones Android desde Eclipse y PhoneGap (Ubuntu)
- Programar Android en Linux, con Eclipse y PhoneGap
- Android Ahora Puede Ejecutar Debian Linux en Tu Teléfono
- Google comienza a añadir funciones de bloqueo antirrobo a los teléfonos Android
- Cómo conectar Linux y Android y por qué deberías hacerlo
- Scrcpy: muestra y controla tu dispositivo Google Android a través del escritorio Linux
- Cómo instalar y utilizar Android Debug Bridge (adb) en Linux
- Eliminar el software espía de su teléfono puede resultar complicado. Estas son tus mejores opciones
- Android 14 Preview 1 está disponible, prohibirá oficialmente la instalación de aplicaciones antiguas
- Android 13 puede ejecutar Windows 10, 11 y distros Linux en el móvil.
- Samsung puede descontinuar los teléfonos inteligentes Galaxy Note de gama alta
- El nuevo procesador Snapdragon 888 de Qualcomm impulsará los buques insignia de Android de 2021
- Google lanza Android Enterprise Essentials dirigido a pymes