[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnuplot output from print?
From: |
John W. Eaton |
Subject: |
Re: gnuplot output from print? |
Date: |
Thu, 06 Sep 2007 02:07:34 -0400 |
On 1-Sep-2007, Shai Ayal wrote:
| On 9/1/07, Søren Hauberg <address@hidden> wrote:
| > Hi,
| > I don't really know that much about how the current plotting system
| > work, so this will probably be a very silly question. I was just
| > wondering how hard it would be to add gnuplot output to print. That is,
| > making it possible to write something like,
| >
| > print -dgnuplot myplot.gp
| >
| > which then would produce a file gnuplot could read. This could be quite
| > useful when you want to tweak some minor detail of a plot. Anyway, just
| > thinking out loud...
|
| Very nice suggestion. I am not near the computer now, but I think
| that, taking example from drawnow.m:
|
| fid = fopen("out.gplt","wb");
| __go_draw_figure__ (fig_handle, fid);
| fclose(fid);
|
| Should give you what you want
Oh, that's a nice trick. I think it is a much better way of saving
the gnuplot command stream than doing something like
gnuplot_binary("tee out.gplt | gnuplot");
and then doing plotting, which is what I used to do.
If someone is interested in a small project, it would be nice to fold
this functionality into drawnow, though I'm not sure what the
interface should be. Perhaps
drawnow (term, file, dump_commands)
Note that it should probably avoid writing "set output" and "set term"
commands to the output file.
jwe
- gnuplot output from print?, Søren Hauberg, 2007/09/01
- Re: gnuplot output from print?, Shai Ayal, 2007/09/01
- Re: gnuplot output from print?,
John W. Eaton <=
- Re: gnuplot output from print?, John W. Eaton, 2007/09/06
- Re: gnuplot output from print?, Søren Hauberg, 2007/09/06
- Re: gnuplot output from print?, John W. Eaton, 2007/09/06
- Re: gnuplot output from print?, Søren Hauberg, 2007/09/06
- Re: gnuplot output from print?, John W. Eaton, 2007/09/06
- Re: gnuplot output from print?, Søren Hauberg, 2007/09/06
- Re: gnuplot output from print?, John W. Eaton, 2007/09/06
- Re: gnuplot output from print?, Søren Hauberg, 2007/09/06