if ($x1 < $plotmarginleft || $x1 > $plotwidth - $plotmarginother - $plotlegendmargin) { continue; } if ($x2 < $plotmarginleft || $x2 > $plotwidth - $plotmarginother - $plotlegendmargin) { continue; } if ($y2 > $plotheight - $plotmarginbottom || $y2 < $plotmarginother) { continue; } // imagefilledrectangle($img[$imagenum],$x1-3,$y1-3,$x1+3,$y1+3,$color[10]); imagefilledellipse($img[$imagenum], $x1, $y1, 10, 10, $color[10]); // imageline($img[$imagenum],$x2,$y2,$x1,$y1,$color[10]); imagethickline($img[$imagenum], $x2, $y2, $x1, $y1, $color[10], 3); // Draw legend imagefilledellipse($img[$imagenum], $legendx, $legendy, 10, 10, $color[10]); imagethickline($img[$imagenum], $legendx - 10, $legendy, $legendx + 10, $legendy, $color[10], 3); $legendname = sprintf("%d%s", $A, $Element[$Z]); imagestring($img[$imagenum], 5, $legendx + 15, $legendy - 7, $legendname, $color[12]); } $colornum = 0; $beammass = getthismass($A, $Z); printf("%.1f", $meanQ); echo "</div><div class=\"t4\">\n"; printf("(%d) %.3f", floor($meanQ), ($beammass - floor($meanQ) * $emass) / floor($meanQ)); echo "</div><div class=\"t4\">\n"; printf("(%d) %.3f", ceil($meanQ), ($beammass - ceil($meanQ) * $emass) / ceil($meanQ)); echo "</div><div class=\"buff\"></div>"; for ($j = 0; $j < sizeof($cocktailA); $j++) { for ($k = 1; $k < $cocktailZ[$j]; $k++) { if ($cocktailA[$j] == $A && $cocktailZ[$j] == $Z) { continue;
$x1 = ($BGAQ[$ii] - $xmin[$imagenum]) * $xscale[$imagenum] + $plotmarginleft; $y1 = ($ymaxLOG[$imagenum] + 2.5 - 1 - $BGIntLOG[$ii]) * $yscale[$imagenum]; $x2 = $x1; $y2 = $y1; //printf(" %e,%e,%e,%e\n",$x1,$x2,$y1,$y2); if ($x1 < $plotmarginleft || $x1 > $plotwidth - $plotmarginother - $plotlegendmargin) { continue; } if ($x2 < $plotmarginleft || $x2 > $plotwidth - $plotmarginother - $plotlegendmargin) { continue; } if ($y2 > $plotheight - $plotmarginbottom || $y2 < $plotmarginother) { continue; } imagefilledellipse($img[$imagenum], $x1, $y1, 5, 5, $color[10]); imagethickline($img[$imagenum], $x2, $y2, $x1, $y1, $color[10], 2); } echo "<form action=\"./\" method=\"post\">"; echo "<input type=\"hidden\" name=\"Mass\" value=\""; echo $A; echo "\">"; echo "<input type=\"hidden\"name=\"Zvalue\" value=\""; echo $Z; echo "\">"; echo "<input type=\"hidden\"name=\"Charge\" value=\""; echo $i; echo "\">"; echo "<input type=\"hidden\"name=\"Liner_material\" value=\""; echo $Liner; echo "\">"; printf("<input type=\"hidden\"name=\"resolving_power\" value=\"%d\">", $Resolve);