本文整理汇总了PHP中Axis::_setMinimum方法的典型用法代码示例。如果您正苦于以下问题:PHP Axis::_setMinimum方法的具体用法?PHP Axis::_setMinimum怎么用?PHP Axis::_setMinimum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Axis
的用法示例。
在下文中一共展示了Axis::_setMinimum方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
/**
* Set the extrema of the axis
*
* @param Image_Graph_Plot $plot The plot that 'hold' the values
* @access private
*/
function _setExtrema(&$plot)
{
if ($this->_axisX != null && $this->_axisX->_isNumeric()) {
$this->_axisX->_setMinimum($plot->_minimumX());
$this->_axisX->_setMaximum($plot->_maximumX());
}
if ($plot->_axisY == IMAGE_GRAPH_AXIS_Y_SECONDARY && $this->_axisYSecondary !== null && $this->_axisYSecondary->_isNumeric()) {
$this->_axisYSecondary->_setMinimum($plot->_minimumY());
$this->_axisYSecondary->_setMaximum($plot->_maximumY());
} elseif ($this->_axisY != null && $this->_axisY->_isNumeric()) {
$this->_axisY->_setMinimum($plot->_minimumY());
$this->_axisY->_setMaximum($plot->_maximumY());
}
$datasets =& $plot->dataset();
if (!is_array($datasets)) {
$datasets = array($datasets);
}
$keys = array_keys($datasets);
foreach ($keys as $key) {
$dataset =& $datasets[$key];
if ($dataset->count() > 0) {
$this->_hasData = true;
}
if (is_a($dataset, 'Image_Graph_Dataset')) {
if ($this->_axisX != null && !$this->_axisX->_isNumeric()) {
$this->_axisX->_applyDataset($dataset);
}
if ($plot->_axisY == IMAGE_GRAPH_AXIS_Y_SECONDARY && $this->_axisYSecondary !== null && !$this->_axisYSecondary->_isNumeric()) {
$this->_axisYSecondary->_applyDataset($dataset);
} elseif ($this->_axisY != null && !$this->_axisY->_isNumeric()) {
$this->_axisY->_applyDataset($dataset);
}
}
}
unset($keys);
}
示例2:
/**
* Set the extrema of the axis
* @param double MinimumX The minimum X value
* @param double MaximumX The maximum X value
* @param double MinimumY The minimum Y value
* @param double MaximumY The maximum Y value
* @access private
*/
function _setExtrema($minimumX, $maximumX, $minimumY = 0, $maximumY = 0)
{
if ($this->_axisX != null) {
$this->_axisX->_setMinimum($minimumX);
$this->_axisX->_setMaximum($maximumX);
}
if ($this->_axisY != null) {
$this->_axisY->_setMinimum($minimumY);
$this->_axisY->_setMaximum($maximumY);
}
}