sandy1028 Posted December 5, 2007 Share Posted December 5, 2007 Hi, $lineplot = new LinePlot($value); //Some code................ foreach($value as $val){ if($val == 0){ $lineplot->mark->SetType(MARK_FILLEDCIRCLE); $lineplot->mark->SetFillColor("black"); $lineplot->mark->SetWidth(2); } elseif($val < 0){ $lineplot->mark->SetType(MARK_FILLEDCIRCLE); $lineplot->mark->SetFillColor("red"); $lineplot->mark->SetWidth(2); } } If the 0 is in the array whole array is marked as Black. But I need Black to be plotted only at the palce where value is 0. Now the problem is if 0 is in the array entire array is plotted as black. How can I avoid it. Please help me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.