|
From: Daniel J S. <dan...@ie...> - 2005-11-20 06:39:32
|
Ethan A Merritt wrote: > Can anyone explain to me why the two surfaces produced > by the command below are colored so differently? > > splot x with pm3d, y with pm3d > > The "y" surface is colored smoothly, but the "x" > surface is colored in 9 increments only. > What command would I use to get two smoothly > colored surfaces? I assume that is a bug. I created a PDF example, and zooming in using a viewer shows the first draw (x) has a larger color map than the second draw (y). So this is not terminal dependent. Furthermore, if a third function is added to the plot, it too has a low resolution color map. So the first map is drawn probably correct and the map for functions afterward is incorrect. Furthermore, replot results in the first function being correct again, so it is reset between replots. Using a fprintf(), I believe that "make_palette" is called just once. Also, I don't think the function is being cast to an integer anywhere because then we'd see 20 levels (-10 to 10) rather than just ten. Petr, could there be a conversion problem in z2cb(), cb2gray() or set_color()? Dan |