|
From: Petr M. <mi...@ph...> - 2004-03-05 16:28:08
|
> region with NaN, but how do I put that in gnuplot so that it does not > plot it? I was putting it in as a -2 and then telling it to only plot > [-1:1] on the z but that was silly since it is a 2D plot. Maybe the > image style needs to have an internal variable that the user can set to > define NaN's. That way I could go and set that to -2 and when image > converts the float to a color it goes ohhh this is a NaN, what fill > style should I use here or what predefined color do I have for NaN. You generate a discrete palette (palette can be red from a file), set the first color to white, and then apply a filter so that the invisible range is mapped to white, and the rest to the remaining palette entries. I do it this way from Octave. How to do it more easily (in future)? "With image", colors of all pixels have to be defined. So there would have to be "set palette backgroundcolor", and "with image" would have to accept the "set zrange" window. Or the background colour could be that of linetype e.g. -2? --- Petr Mikulik |