本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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;
}
示例5:
function __construct($datay, $datax = false)
{
parent::__construct($datay, $datax);
++$this->numpoints;
}
示例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();
}
示例7: __construct
public function __construct($datay, $datax = false)
{
parent::__construct($datay, $datax);
$this->numpoints /= 2;
}