Replies: 27 comments
|
It might be possible to implement this as a more general feature: Emacs could capture Gnuplot's output in any image format by using temporary files, and place it in a buffer. This would effectively allow you to plot into an Emacs window, and you could use In fact, this is already mostly implemented by the The lack of a closing |
|
thanks for the reply! this quite simplifies the workflow using but I've never really programmed in elisp, so I'm a bit lost in your code, looking for what to change/add in order to automatize the process. I guess I would like to do this: so I would execute is this viable? what keywords to look for in the code? |
|
I think this is viable. I have a branch with a proof-of-concept implementation which I will push shortly for you to try out, if you like. I am still working on getting the buffering issue sorted out. I had thought of having a single |
|
Please try out the prototype implementation of this in
|
|
Note: I've never used |
|
with the current changes I can indeed get the graph in a svg buffer. how can I visualize/log what if I run
|
|
Hmm, that is strange. It may help to do Could you post a minimal |
|
me behind very intermittent internet connection. was not logged in when I created this: |
|
is there a different way to reset gnuplot? this asks for user intervention. |
|
I'm looking at the code of |
|
is it OK to invoke |
in |
|
Once i made that change to org-plot, I seem to be able to plot your table repeatedly using |
|
Hmm, no, it's still possible to get the "Selecting deleted buffer" error. Investigating.. |
|
I suspect the buffer being deleted is |
|
I pushed a small commit to the |
|
lisp doubt: how about this as a callback... (run-with-idle-timer 0.1 nil (list #'delete-file data-file)) |
|
No, look at the docstring for |
|
If you can reproduce the "Selecting deleted buffer" error, could you please do |
|
You're right, it is probably the |
|
I can consistently reproduce the "Selecting deleted buffer" error (every second time I run |
|
more info: in my /tmp dir, I have these files: -rw------- 1 mario mario 1306 Nov 1 18:54 org-plot20401v0t files seem to be generated in pairs, subsequent orgplot* files are equal. when the operation is successful, gnuplot* files are also generated in pairs, otherwise only the first, empty one, is generated. |
|
What does Emacs print if you type |
|
Please try the latest revision on the I still sometimes see zombie gnuplot processes hanging around, but I'm not sure why. You should also apply this patch to I do think |
|
in with your edits and if I kill the gnuplot process before invoking seems indeed that the way org-plot tries to get a fresh gnuplot process doesn't work properly. it works just as well, and without me needing to kill the process by hand. there's still two gnuplot (not any more the org-plot) temporary files hanging in the |
|
Do you have to kill the gnuplot process every time before running Otherwise i don't have too many more ideas what problem you might be seeing right now ... |
|
I will try debugging, but what do you think about not killing the process and rely on |
Uh oh!
There was an error while loading. Please reload this page.
I guess this is the first place where intervention is needed:
I'm holding a spreadsheet in an emacs buffer, not yet decided whether to use
sesororg., in both cases I have to go throughgnuplotand in particular org-plot makes use ofgnuplot-mode.I'd like to grab the graph in a buffer, in svg format.
the svg format allows me further editing of the graph still using emacs.
my workflows using ses:
*gnuplot trail*bufferthe workflow using org-plot is more complicated:
*gnuplot*buffer and copy the commandsgnuplot-make-bufferto open a new gnuplot bufferset terminal svg*gnuplot*bufferI do not see svg in the possible terminals offered by gnuplot-mode.
when terminal is set to svg, I would expect gnuplot-mode to do this:
first time gnuplot outputs svg code, it will be almost complete (misses the closing svg tag).
subsequent times it starts immediately after the closing defs tag.
All reactions