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 |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Please try out the prototype implementation of this in
|
Beta Was this translation helpful? Give feedback.
-
Note: I've never used |
Beta Was this translation helpful? Give feedback.
-
with the current changes I can indeed get the graph in a svg buffer. how can I visualize/log what if I run
|
Beta Was this translation helpful? Give feedback.
-
Hmm, that is strange. It may help to do Could you post a minimal |
Beta Was this translation helpful? Give feedback.
-
me behind very intermittent internet connection. was not logged in when I created this: |
Beta Was this translation helpful? Give feedback.
-
is there a different way to reset gnuplot?
this asks for user intervention. |
Beta Was this translation helpful? Give feedback.
-
I'm looking at the code of |
Beta Was this translation helpful? Give feedback.
-
is it OK to invoke |
Beta Was this translation helpful? Give feedback.
-
in
|
Beta Was this translation helpful? Give feedback.
-
Once i made that change to org-plot, I seem to be able to plot your table repeatedly using |
Beta Was this translation helpful? Give feedback.
-
Hmm, no, it's still possible to get the "Selecting deleted buffer" error. Investigating.. |
Beta Was this translation helpful? Give feedback.
-
I suspect the buffer being deleted is |
Beta Was this translation helpful? Give feedback.
-
I pushed a small commit to the |
Beta Was this translation helpful? Give feedback.
-
lisp doubt: how about this as a callback... (run-with-idle-timer 0.1 nil (list #'delete-file data-file)) |
Beta Was this translation helpful? Give feedback.
-
No, look at the docstring for |
Beta Was this translation helpful? Give feedback.
-
If you can reproduce the "Selecting deleted buffer" error, could you please do |
Beta Was this translation helpful? Give feedback.
-
You're right, it is probably the |
Beta Was this translation helpful? Give feedback.
-
I can consistently reproduce the "Selecting deleted buffer" error (every second time I run |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
What does Emacs print if you type |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 ... |
Beta Was this translation helpful? Give feedback.
-
I will try debugging, but what do you think about not killing the process and rely on |
Beta Was this translation helpful? Give feedback.
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
ses
ororg
., in both cases I have to go throughgnuplot
and 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-buffer
to 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.
Beta Was this translation helpful? Give feedback.
All reactions