|
From: Petr M. <mi...@ph...> - 2004-09-21 08:35:01
|
> So, say two plots are created and by default they are both set to > "plot->cmap = cmap". Then whenever PaletteMake() is run on the colormap > for one of the plots, it is effectively changing the color map for the > other. So, that is why I'm saying that somewhere along the way upon the > creation of a plots color map, it must *duplicate* the default palette, > i.e., malloc an equal amount of memory as "cmap" and then use memcpy(). > That is, if one wants color maps to be preserved in plots. I assume > that when the palette is changed at gnuplot's command line, that change > is supposed to apply to the default palette as well as the current > plot's palette. Yes, every x11 windows should have its own copy of the palette. When there is a new (re)plot, x11 should copy the current gnuplot palette into palette of the active window, and use that. Can you please implement this? --- PM |