當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Axis::draw方法代碼示例

本文整理匯總了PHP中Axis::draw方法的典型用法代碼示例。如果您正苦於以下問題:PHP Axis::draw方法的具體用法?PHP Axis::draw怎麽用?PHP Axis::draw使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Axis的用法示例。


在下文中一共展示了Axis::draw方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: drawEnvelope

 public function drawEnvelope(awDriver $driver)
 {
     // Draw axis
     $this->xAxis->draw($driver);
     $this->yAxis->draw($driver);
 }
開發者ID:drognisep,項目名稱:Simple-Groupware,代碼行數:6,代碼來源:MathPlot.class.php

示例2: drawEnvelope

 function drawEnvelope($drawer)
 {
     // Draw axis
     $this->xAxis->draw($drawer);
     $this->yAxis->draw($drawer);
 }
開發者ID:ber5ien,項目名稱:www.jade-palace.co.uk,代碼行數:6,代碼來源:MathPlot.class.php

示例3: DarkGray

$yAxis->label->set($labels);
$yAxis->label->setColor(new DarkGray());
$yAxis->label->setAlign(LABEL_RIGHT);
$yAxis->label->setFont(new Tuffy(7));
$yAxis->label->move(-5, 0);
$tick = new Tick(0, 2);
$yAxis->addTick('minor', $tick);
$tick = new Tick(11, 5);
$yAxis->addTick('major', $tick);
$yAxis->setNumberByTick('minor', 'major', 3);
$xAxis->setYCenter($yAxis, 0);
$yAxis->setXCenter($xAxis, 0);
$xAxis->draw($driver);
$yAxis->draw($driver);
for ($x = -10; $x <= 10; $x += 0.1) {
    $p = Axis::toPosition($xAxis, $yAxis, new Point($x, cos($x) * 4));
    $driver->point(new Red(), $p);
}
// Vertical axis
$axis = new Axis();
//$axis->line->setThickness(2);
$axis->setRange(8, -8);
$axis->setPadding(10, 10);
$axis->line->setLocation(new Point(20, 260), new Point(380, 380));
$tick = new Tick(0, 4);
$axis->addTick('minor', $tick);
$tick = new Tick(11, 8);
$axis->addTick('major', $tick);
$axis->setNumberByTick('minor', 'major', 3);
$axis->draw($driver);
$graph->draw();
開發者ID:BackupTheBerlios,項目名稱:horux-svn,代碼行數:31,代碼來源:Tools-2.test.php


注:本文中的Axis::draw方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。