当前位置: 首页>>代码示例>>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;未经允许,请勿转载。