当前位置: 首页>>代码示例>>PHP>>正文


PHP pImage::drawDerivative方法代码示例

本文整理汇总了PHP中pImage::drawDerivative方法的典型用法代码示例。如果您正苦于以下问题:PHP pImage::drawDerivative方法的具体用法?PHP pImage::drawDerivative怎么用?PHP pImage::drawDerivative使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pImage的用法示例。


在下文中一共展示了pImage::drawDerivative方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: extractColors

}
if ($sl_enabled == "true") {
    $Config = "";
    $Config["CaptionMargin"] = 10;
    $Config["CaptionWidth"] = 10;
    if ($sl_shaded == "true") {
        $Config["ShadedSlopeBox"] = TRUE;
    }
    if ($sl_caption_enabled != "true") {
        $Config["Caption"] = FALSE;
    }
    if ($sl_caption_line == "true") {
        $Config["CaptionLine"] = TRUE;
    }
    if ($Mode == "Render") {
        $myPicture->drawDerivative($Config);
    } else {
        echo "\r\n";
        echo dumpArray("Config", $Config);
        echo '$myPicture->drawDerivative($Config);' . "\r\n";
    }
}
if ($Mode == "Render") {
    $myPicture->stroke();
} else {
    echo "\r\n" . '$myPicture->stroke();' . "\r\n?>";
}
function extractColors($Hexa)
{
    if (strlen($Hexa) != 6) {
        return array(0, 0, 0);
开发者ID:ambagasdowa,项目名称:projections,代码行数:31,代码来源:render.php

示例2: pData

include "../class/pDraw.class.php";
include "../class/pImage.class.php";
/* Create and populate the pData object */
$MyData = new pData();
$MyData->addPoints(array(3, 12, 15, 8, 5, -5, 5, -5, -3, 4, 5, 10), "Probe");
$MyData->setAxisName(0, "Temperatures");
$MyData->addPoints(array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"), "Labels");
$MyData->setSerieDescription("Labels", "Months");
$MyData->setAbscissa("Labels");
$MyData->setAbscissaName("Months");
/* Create the pChart object */
$myPicture = new pImage(700, 230, $MyData);
/* Turn of AAliasing */
$myPicture->Antialias = FALSE;
/* Set the default font */
$myPicture->setFontProperties(array("R" => 0, "G" => 0, "B" => 0, "FontName" => "../fonts/pf_arma_five.ttf", "FontSize" => 6));
/* Define the chart area */
$myPicture->setGraphArea(50, 40, 680, 170);
/* Draw the scale */
$scaleSettings = array("XMargin" => 10, "YMargin" => 10, "Floating" => TRUE, "DrawSubTicks" => TRUE, "GridR" => 100, "GridG" => 100, "GridB" => 100, "GridAlpha" => 15);
$myPicture->drawScale($scaleSettings);
/* Draw the chart */
$myPicture->Antialias = TRUE;
$myPicture->drawSplineChart();
$myPicture->Antialias = FALSE;
/* Draw the series derivative graph */
$myPicture->drawDerivative(array("Caption" => FALSE));
/* Write the chart legend */
$myPicture->drawLegend(640, 20, array("Style" => LEGEND_NOBORDER, "Mode" => LEGEND_HORIZONTAL));
/* Render the picture (choose the best way) */
$myPicture->autoOutput("pictures/example.drawDerivative.simple.png");
开发者ID:OndroNR,项目名称:bitcoin-hal10k,代码行数:31,代码来源:example.drawDerivative.simple.php

示例3: array

$myPicture->drawRectangle(0, 0, 699, 349, array("R" => 0, "G" => 0, "B" => 0));
/* Set the default font */
$myPicture->setFontProperties(array("FontName" => "../fonts/pf_arma_five.ttf", "FontSize" => 6));
/* Define the chart area */
$myPicture->setGraphArea(60, 40, 650, 200);
/* Draw the scale */
$scaleSettings = array("XMargin" => 10, "YMargin" => 10, "Floating" => TRUE, "LabelSkip" => 4, "GridR" => 220, "GridG" => 220, "GridB" => 220, "DrawSubTicks" => TRUE, "CycleBackground" => TRUE);
$myPicture->drawScale($scaleSettings);
/* Turn on Antialiasing */
$myPicture->Antialias = TRUE;
/* Draw the line of best fit */
$myPicture->drawBestFit(array("Ticks" => 4, "Alpha" => 50, "R" => 0, "G" => 0, "B" => 0));
/* Draw the line chart */
$myPicture->drawLineChart();
/* Draw the series derivative graph */
$myPicture->drawDerivative(array("ShadedSlopeBox" => TRUE, "CaptionLine" => TRUE));
/* Write the chart legend */
$myPicture->drawLegend(570, 20, array("Style" => LEGEND_NOBORDER, "Mode" => LEGEND_HORIZONTAL));
/* Set the default font & shadow settings */
$myPicture->setShadow(TRUE, array("X" => 1, "Y" => 1, "R" => 0, "G" => 0, "B" => 0, "Alpha" => 10));
$myPicture->setFontProperties(array("FontName" => "../fonts/Forgotte.ttf", "FontSize" => 11));
/* Write the chart title */
$myPicture->setFontProperties(array("FontName" => "../fonts/Forgotte.ttf", "FontSize" => 11));
$myPicture->drawText(150, 35, "Probability of heart disease", array("FontSize" => 20, "Align" => TEXT_ALIGN_BOTTOMMIDDLE, "R" => 255, "G" => 255, "B" => 255));
/* Write a label over the chart */
$LabelSettings = array("DrawVerticalLine" => TRUE, "TitleMode" => LABEL_TITLE_BACKGROUND, "TitleR" => 255, "TitleG" => 255, "TitleB" => 255);
$myPicture->writeLabel("Statistical probability", 35, $LabelSettings);
/* Create the pIndicator object */
$Indicator = new pIndicator($myPicture);
/* Define the indicator sections */
$IndicatorSections = "";
开发者ID:josepabloapu,项目名称:statistical-analysis-tools-lamp,代码行数:31,代码来源:example.Mixed.classes.php


注:本文中的pImage::drawDerivative方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。