From: Daniel J S. <dan...@ie...> - 2004-09-27 21:50:54
|
Daniel J Sebald wrote: >> >> Ethan Merritt wrote: >> >>> It is strictly necessary for x11.trm to send the palette with each new >>> plot, because it has no way of knowing which if any of the previous >>> plots are still active in gnuplot_x11. >> >> > > True, sort of. In the scheme I have in mind, gnuplot_x11 always > retains the current_ map, even if there are no plot windows open. > Said another way, when a window closes the color map pointer for that > window is checked against the color map pointer of all other windows > *and* current_map. If it is not used somewhere else, then the color > map is freed. The one problem would be if gnuplot_x11 crashes and gnuplot starts up another version of it. If gnuplot doesn't send a palette, out of luck. However, I've not seen gnuplot_x11 crash unexpectedly in a long time. I guess I'm fine with palette being sent all the time. Just a bit of extra testing. Dan |