From: Ethan M. <merritt@u.washington.edu> - 2005-08-18 20:28:10
|
On Thursday 18 August 2005 01:08 pm, Juergen Wieferink wrote: > > So the savest thing is to do: > > set ... > ... > > set term ... > set output "..." > plot ... > set output That depends on what you want to end up with. If you want all of your plots included in the same output file then you certainly don't want to close it after each one. In fact that will result in the plots over-writing each other and only the last plot will be saved in the end. The important distinction is whether a particular output format can contain multiple plots (NB: *not* multiplot) or not. A PostScript or PDF document can contain as many plots as you want, one per page. A PNG output file can contain only one plot. A GIF output file can contain multiple plots, but only if you describe them as an "animation". The current SVG terminal was not designed to handle multiple plots in the same output file; whatever you get in this case is undocumented and may not be repeatable. Inconsistent? I suppose so. But this is the nature of the output formats themselves. gnuplot cannot store multiple plots in an PNG image because the PNG standard itself does not provide for it. (Actually, there is an extension called MNG that does provide for multiple plots per file, but let's disregard that for now). -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |