From: <tim...@en...> - 2006-07-26 00:29:23
|
Daniel J Sebald wrote: > Timoth=C3=A9e Lecomte wrote: >> >> The bug comes from the current implementation of "persist" in the wxt=20 >> terminal. >> >> This option is used by external programs, like maxima, to control=20 >> gnuplot. They send their commands through a pipe or a file or=20 >> whatever, they let gnuplot exit at the end of the commands, but as=20 >> they want the plot windows to stay open, they use "persist". > > They issue the commands for a plot and then close gnuplot? Well it=20 > shouldn't be done that way. That is not what persist is intended=20 > for. The program should keep the pipe open. > > Octave opens gnuplot and holds onto the pipe. (If I recall, it uses a=20 > fork... The person that oversees Octave is a very good and organized=20 > programmer.) That's why I read once that for his own work he is (was?) actually not=20 using octave's plot() functions, but writes a makefile that would run a=20 gnuplot script when the data changes ;-) > > I can make a guess as to what may be going on here. We've had this=20 > discussion many times in the past, which is the fact that gnuplot only=20 > retains information about a single plot. If there are several X=20 > windows open, still it is only the information about the most recent=20 > plot that is available. Hence, you'll see that the mouse functions=20 > only work for the most recent X plot. And worse, with the "persist" implementation in the X11 terminal, you=20 lose all zooming capabilities once gnuplot has exited. That's an additional argument that I forgor to mention if my maxima bug=20 report... > > Well, I know that for Octave, John decided to open a new instance of=20 > gnuplot for every plot created. That way, ever plot in Octave does=20 > have its information retained. John figured that gnuplot was a rather=20 > small program so not much harm done. > > Maybe Maxima people have the same philosophy to get multiple windows,=20 > only they figure why keep so many versions of gnuplot around? It's=20 > wasting memory. I don't really get what you mean here. > If Maxima had a multiple window version of the terminal (I assume=20 > we're talking of Windows here, no?) then perhaps they would be willing=20 > to change their program. We are talking about UNIX here. Under Windows, maxima does something=20 else (I think it is using the png terminal, and copy the image to their=20 home-made gui). Timoth=C3=A9e |