|
From: Petr M. <mi...@ph...> - 2004-11-25 08:30:39
|
> I have just uploaded to SourceForge a new patchset #1072284 that allows all > plot elements, 2D or 3D, to use PM3D palette coloring options. > Please have a look at it. > > Output from a demo script is here: > http://www.bmsc.washington.edu/people/merritt/gnuplot/demo/palette_2D.html That's nice! Isn't there white and black missing in the color wheel? However, it is not flexible for using "red", "white", etc colors in splots. I would prefer an approach that would itself be able to extract a color matching to e.g. "red". If you look to show.c:show_palette_fit2rgbformulae(), there is a method to calculate distance between given (rgb) color and any other color. File tables.c contains color names and their RGBs. Thus user's plot sin(x) with line Red lw 2 where Red would be Red = getcolor("red") or, for any rgb, MyLightRed = getcolor(0.9,0.01,0.01) would search through the current palette and find the corresponding "pal frac". Thus this could would work on all color tables, giving more or less same results. I have no clear idea what from the above should be constant, macro, function. Those palette having infinite number of colors would be sampled to e.g. 256 discrete colors during the search. > 2) The "save" and "show" commands do not funnel printout of linetype > properties through a shared routine. This means that there is no single place save would work with the above method > PM3D palette I would rather call it "palette of smooth continuous colors" or like that, as in 'help palette' --- PM |