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


PHP Plot::__construct方法代碼示例

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


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

示例1: LinePlot

 function LinePlot($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     $this->mark = new PlotMark();
     $this->color = ColorFactory::getColor();
     $this->fill_color = $this->color;
 }
開發者ID:jabouzi,項目名稱:3b,代碼行數:7,代碼來源:jpgraph_line.php

示例2:

 function __construct($datay, $datax = false)
 {
     if (count($datay) % $this->iTupleSize) {
         JpGraphError::RaiseL(21001, $this->iTupleSize);
         //('Data values for Stock charts must contain an even multiple of '.$this->iTupleSize.' data points.');
     }
     parent::__construct($datay, $datax);
     $this->numpoints /= $this->iTupleSize;
 }
開發者ID:nbgmaster,項目名稱:happify,代碼行數:9,代碼來源:jpgraph_stock.php

示例3: __construct

 public function __construct($datay, $datax, $angles)
 {
     if (count($datax) != count($datay)) {
         Util\JpGraphError::RaiseL(20001);
     }
     //("Fieldplots must have equal number of X and Y points.");
     if (count($datax) != count($angles)) {
         Util\JpGraphError::RaiseL(20002);
     }
     //("Fieldplots must have an angle specified for each X and Y points.");
     $this->iAngles = $angles;
     parent::__construct($datay, $datax);
     $this->value->SetAlign('center', 'center');
     $this->value->SetMargin(15);
     $this->arrow = new FieldArrow();
 }
開發者ID:amenadiel,項目名稱:jpgraph,代碼行數:16,代碼來源:FieldPlot.php

示例4: PlotMark

 function __construct($datay, $datax = false)
 {
     if (count($datax) != count($datay) && is_array($datax)) {
         JpGraphError::RaiseL(20003);
         //("Scatterplot must have equal number of X and Y points.");
     }
     parent::__construct($datay, $datax);
     $this->mark = new PlotMark();
     $this->mark->SetType(MARK_SQUARE);
     $this->mark->SetColor($this->color);
     $this->value->SetAlign('center', 'center');
     $this->value->SetMargin(0);
     $this->link = new LineProperty(1, 'black', 'solid');
     $this->link->iShow = false;
 }
開發者ID:sandakinhs,項目名稱:iCRM3,代碼行數:15,代碼來源:jpgraph_scatter.php

示例5:

 function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     ++$this->numpoints;
 }
開發者ID:thctlo,項目名稱:1.2.0,代碼行數:5,代碼來源:jpgraph_bar.php

示例6: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $sportid = strlen(Request::param('sportid')) > 0 ? Request::param('sportid') : Configuration::General()->runningSport();
     $this->Year = $this->getRequestedYear();
     $this->Sport = new Sport($sportid);
     parent::__construct($this->getCSSid(), 800, 500);
     $this->init();
     $this->addAverage();
 }
開發者ID:schoch,項目名稱:Runalyze,代碼行數:12,代碼來源:class.PlotSumData.php

示例7: __construct

 public function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     $this->numpoints /= 2;
 }
開發者ID:amenadiel,項目名稱:jpgraph,代碼行數:5,代碼來源:ErrorPlot.php


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