function AddY($aN, $aPlot) { if ($aPlot == null) { JpGraphError::RaiseL(25012); //("Graph::AddYN() You tried to add a null plot to the graph."); } if (is_array($aPlot) && count($aPlot) > 0) { $cl = $aPlot[0]; } else { $cl = $aPlot; } if ($cl instanceof Text || class_exists('PlotLine', false) && $cl instanceof PlotLine || class_exists('PlotBand', false) && $cl instanceof PlotBand) { JpGraph::RaiseL(25013); //('You can only add standard plots to multiple Y-axis'); } else { $this->ynplots[$aN][] = $aPlot; } if ($this->graph_theme) { $this->graph_theme->SetupPlot($aPlot); } }
function AddY($aN, &$aPlot) { if ($aPlot == null) { JpGraphError::RaiseL(25012); } //("Graph::AddYN() You tried to add a null plot to the graph."); if (is_array($aPlot) && count($aPlot) > 0) { $cl = $aPlot[0]; } else { $cl = $aPlot; } if (is_a($cl, 'Text') || is_a($cl, 'PlotLine') || is_a($cl, 'PlotBand')) { JpGraph::RaiseL(25013); } else { $this->ynplots[$aN][] =& $aPlot; } }
function AddY($aN, $aPlot) { if ($aPlot == null) { JpGraphError::RaiseL(25012); } //("Graph::AddYN() You tried to add a null plot to the graph."); if (is_array($aPlot) && count($aPlot) > 0) { $cl = $aPlot[0]; } else { $cl = $aPlot; } if ($cl instanceof Text || $cl instanceof PlotLine || class_exists('PlotBand', false) && $cl instanceof PlotBand) { JpGraph::RaiseL(25013); } else { $this->ynplots[$aN][] = $aPlot; } }
function AddY($aN, &$aPlot) { if ($aPlot == null) { JpGraphError::RaiseL(25012); } if (is_array($aPlot) && count($aPlot) > 0) { $cl = $aPlot[0]; } else { $cl = $aPlot; } if (is_a($cl, 'Text') || is_a($cl, 'PlotLine') || is_a($cl, 'PlotBand')) { JpGraph::RaiseL(25013); } else { $this->ynplots[$aN][] =& $aPlot; } }