On Mon, 14 Mar 2016, Sven Schreiber wrote:
Am 14.03.2016 um 14:08 schrieb Schaff, Frederik:
> Hello,
>
> I was wondering if there exists an (undocumented) option to save
> freq. histograms to the disk as, say .png file. I can use the"
> --show-plot" option in a loop and then manually save the figures thus
> created (even save them as icon and manipulate them). But is there a
> way to save them to a file like it is possible with scatters and
> boxplots? I.e. something like an "output=" option and perhaps even a
> way to pass additional arguments via { set ... ; } ?
A very good question. I see no good reason why it shouldn't get the same
--output option as 'gnuplot' or 'boxplot'.
While we're at it, I notice that 'rmplot' does not have such an option,
either.
And in the doc for 'scatters' the line "--output=filename (send output to
specified file)" is included twice.
Good points. I realize that I did something about some of this a
while back but apparently stopped short of completing or documenting
it. I've now updated the help text and brought "freq" into line with
similar commands. Here's the deal:
* Commands such as "gnuplot", "plot", "scatters",
"boxplot" and
"qqplot", which just produce plots, should all respect the
"--output=" option, taking an argument of either "display" or the
name of a file (which then governs the type of file produced).
* Other commands that can produce a plot but also produce textual
output ("rmplot", "leverage", "freq", etc.) all have a
option,
"--plot=", which also accepts a "display" or filename argument, but
in addition accepts "none" (which suppresses the plot that is
produced by default in interactive use).
Adding this "--plot=" option to "freq" means that two existing
options become redundant, namely --quiet (use --plot=none now) and
--show-plot (use --plot=display). I haven't yet removed these
options but I've dropped them from the help text and I'll mark them
as deprecated.
What I've described is now in git and snapshots.
Allin