|
From: Ethan A M. <eam...@gm...> - 2018-07-14 20:57:00
|
On Saturday, 14 July 2018 22:41:09 Gunter Königsmann wrote: > Dear all, > > wxMaxima allows to automatically embed gnuplot plots into a maths > worksheet: The plot is generated with the png (or pngcairo) terminal and > the bitmap is embedded. Tomorrow's nightly build also on right-clicking > a plot allows to start a separate gnuplot process - which popups a > window in which the user can interactively turn a 3d plot, zoom in and > out or measure coordinates with the cursor. There is a problem left, though: > > - If I start gnuplot as "gnuplot -p /tmp/maxoutXXX.gnuplot" gnuplot > closes when the user closes gnuplot's plot window. But the displayed > graphics is is not interactive (for example a 3d image cannot be turned > using the mouse) > - and if /tmp/maxoutXXX.gnuplot ends with a "pause -1" the image can be > turned with the mouse. But in this case gnuplot doesn't close when the > user dismisses the interactive gnuplot window, which makes gnuplot act > like a big memory leak. > > In the internet I find many related questions like > https://groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/bE0RHH_l7aI That's from 10 years ago, but the answer is correct. Instead of "pause -1" you want some variant of "pause mouse", possibly "pause mouse close" . See the documentation for the pause command or "help pause". Ethan > ...but until now I didn't find a real solution to my question (most of > the questions were from the gnuplot 4.0 times, though) so I'm asking here. > > Thanks in advance, > and kind regards, > > Gunter. |