|
From: Ethan A M. <sf...@us...> - 2013-10-29 17:16:24
|
On Monday, 28 October, 2013 23:32:10 Dima Kogan wrote: > Hi. > > I'm plotting some binary data 'with image' (using the most recent > gnuplot in the repo). The data has a few NaN and a few Inf values in it. > I'm seeing that these points are rendered differently between > otherwise-identical 'plot' and 'splot' plots. > > I'm attaching a sample data file that has some NaNs. The command I'm > using to plot is > > set view map > splot '/tmp/inconsistent_nan.dat' binary array=(155,5) format="%float" with image > > The 'plot' command is identical except using 'plot' instead of 'splot'. > > At full zoom-out, the 'splot' draws NaN in white, -inf in black and +inf > in yellow. The colors autoscale, so these mappings were done by drawing > -inf with the lowest-range color, +inf with the highest-range color, and > nan as transparent. > > The 'splot' version just sets the infs and the nans to 0. This lies in > the middle of the range for this dataset, so the rendering is roughly > red. > > I'm not against either of these behaviors, but I think them being > different is a bug. Thoughts? The demo file "imageNaN.dem" shows that the handling is the same in 2D and 3D for at least some cases. Your example must hit some other code path..... Yup. Simple bug failing to handle the case where the color information is in column 4 rather than column 3. Look for a fix soon. Ethan |