本文整理匯總了PHP中Image_Graph_Plot::_minimumY方法的典型用法代碼示例。如果您正苦於以下問題:PHP Image_Graph_Plot::_minimumY方法的具體用法?PHP Image_Graph_Plot::_minimumY怎麽用?PHP Image_Graph_Plot::_minimumY使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Image_Graph_Plot
的用法示例。
在下文中一共展示了Image_Graph_Plot::_minimumY方法的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:
/**
* Return the minimum Y point
*
* @return double The minumum Y point
* @access private
*/
function _minimumY()
{
return 1.05 * parent::_minimumY();
}