Index: branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/DrawObjects.c
===================================================================
--- branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/DrawObjects.c	(revision 32329)
+++ branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/DrawObjects.c	(revision 32333)
@@ -408,4 +408,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -424,4 +425,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -440,4 +442,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -457,4 +460,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -475,4 +479,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -495,4 +500,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -513,4 +519,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -531,4 +538,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -547,4 +555,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -567,4 +576,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
@@ -589,4 +599,5 @@
 	  (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel);
Index: branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/PSObjects.c
===================================================================
--- branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/PSObjects.c	(revision 32329)
+++ branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/PSObjects.c	(revision 32333)
@@ -323,4 +323,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -340,4 +341,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -357,4 +359,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -375,4 +378,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -393,4 +397,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -415,4 +420,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -434,4 +440,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -453,4 +460,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -470,4 +478,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -491,4 +500,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
@@ -514,4 +524,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]);
Index: branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/bDrawObjects.c
===================================================================
--- branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/bDrawObjects.c	(revision 32329)
+++ branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/bDrawObjects.c	(revision 32333)
@@ -307,4 +307,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -326,4 +327,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -345,4 +347,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -365,4 +368,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -385,4 +389,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -405,4 +410,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -424,4 +430,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -445,4 +452,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -464,4 +472,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -487,4 +496,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
@@ -511,4 +521,5 @@
       {
 	if (scaleColor) {
+	  if (!finite(z[i])) continue;
 	  int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1)));
 	  buffer->bColor_R = pixel1[pixel];
