From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-plot : interaction problem with gnuplot Date: Mon, 29 Jun 2009 18:14:20 -0700 Message-ID: References: <14768312.6807241246313133278.JavaMail.www@wwinf4628> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLRvd-0004fc-EI for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 21:14:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLRvY-0004TH-GD for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 21:14:32 -0400 Received: from [199.232.76.173] (port=60766 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLRvY-0004So-9B for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 21:14:28 -0400 Received: from rv-out-0708.google.com ([209.85.198.242]:63491) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLRvX-0006VH-Su for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 21:14:28 -0400 Received: by rv-out-0708.google.com with SMTP id k29so1055043rvb.2 for ; Mon, 29 Jun 2009 18:14:27 -0700 (PDT) In-Reply-To: <14768312.6807241246313133278.JavaMail.www@wwinf4628> (d. tchin's message of "Tue, 30 Jun 2009 00:05:33 +0200 (CEST)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: d.tchin@voila.fr Cc: emacs-orgmode@gnu.org d.tchin@voila.fr writes: > Hi=20 > > Thank you for your help. > > 1=C2=B0) I try to use comint buffer and to launch few commands. I don't > really understand the way comint works but it seems that each=20 > time that I use a command, there is a freeze, and to access=20 > back to the emacs buffer I have to use \C-g several times.=20 > Hi, Given the above, it sounds like the problem lies in either gnuplot or gnuplot-mode. It may be worthwhile testing out the gnuplot command directly from a terminal (if it doesn't work there it won't work anywhere else). > > 2=C2=B0) I put the instruction you suggested. I try to use org-plot/gnupl= ot=20 > and I have the following output on message buffer: > Since the problem seems to lie upstream from org-plot, please ignore/undo the second instructions I sent in the previous email. Sorry I can't be of more help. Maybe the maintainer of gnuplot-mode[1] could be of more help. Best -- Eric > > OVERVIEW > org-plot/gnuplot > CHILDREN > Loading d:/perso/home/emacs/emacs-22.2/lisp/org/lisp/org-plot.el (source)= ...done > script is reset > set title 'Citas' > set yrange [0:] > progn: Wrong number of arguments: (lambda (line) (block add-to-script (se= tf script (format "%s > %s" script line)))), 2 > Mark set > > > Thanks > > >> Message du 26/06/09 =C3=A0 03h37 >> De : "Eric Schulte"=20 >> A : d.tchin@voila.fr >> Copie =C3=A0 : emacs-orgmode@gnu.org >> Objet : Re: [Orgmode] org-plot : interaction problem with gnuplot >>=20 >>=20 >> d.tchin@voila.fr writes: >>=20 >> > Hi, >> > >> > I would like to use gnuplot with org-mode tabular function.But I >> > haven't managed to use it until now.=20 >> > I would like to submit to you few remarks I have done. >> > >> > I use GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) on Microsoft Windows XP= OS. >> > I have installed gnuplot and I can use it with gnuplot-mode.=20 >> > >> > I tried to follow the tutorial of Eric Schulte but I didn't manage to = get a plot of >> > simple example extracted from the tutorial. >> > >> > I use these data defined in a file orgplot.org : >> > #+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yran= ge [0:]" >> > | Sede | Max cites | H-index | >> > |------------+-----------+---------| >> > | Chile | 257.72 | 21.39 | >> > | Leeds | 165.77 | 19.68 | >> > | S=C3=83=C2=A3o Paolo | 71.00 | 11.50 | >> > | Stockholm | 134.19 | 14.33 | >> > | Morelia | 257.56 | 17.67 | >> > >> > >> > When I use org-plot/gnuplot, gnuplot is launched with only the reset c= ommand >> > and emacs is totally freezed. To get back to emacs, I use \C-g command= .=20 >> > >>=20 >> Hmm, it is not clear to me what is happening here. It is possible that >> the problem is somehow related to running on a windows machine, as I >> have only personally tested org-plot on linux and Mac OS's. >>=20 >> The only two things I can think of at the moment are >> 1. the reset command is freezing on your machine, you could test this >> out by starting up a gnuplot comint buffer and entering the "reset" >> command=20 >> 2. for some reason the script is not being set to the correct value, you >> could test this by adding the following line >>=20 >> (message "script is %s" script) >>=20 >> right after line 263 in lisp/org-plot.el, then reloading that >> function (with C-M-x) and running org-plot-gnuplot again, checking >> the message buffer to see the contents of the script variable. >>=20 >> Sorry I can't be of more help. If I find time I may re-write org-plot >> to use org-babel (see any of my other recent emails for more information >> on org-babel) which could eliminate this problem. >>=20 >> Please do let me know the results of looking into the above suggestions, >> or if you have any ideas breakthroughs. >>=20 >> Thanks -- Eric >>=20 >> > >> > I have checked few things : >> > >> > - org-plot/gnuplot managed to build a temporay file org-plot???? with = the following=20 >> > data >> > >> > "Chile" 257.72 21.39 >> > "Leeds" 165.77 19.68 >> > "S=C3=83=C2=A3o Paolo" 71.00 11.50 >> > "Stockholm" 134.19 14.33 >> > "Morelia" 257.56 17.67 >> > >>=20 >> That looks right >>=20 >> > > >> > - I suppose that org-plot/gnuplot builds a temporary buffer with the i= nstructions=20 >> > that will be sent to gnuplot. I checked that *gnuplot* buffer with=20 >> > gnuplot-show-gnuplot-buffer. There is only the reset command. >> > >>=20 >> That makes sense, it is still possible that the entire command is being >> constructed, but that Emacs is freezing before anything after the >> "reset" line are evaluated and dropped into the *gnuplot* buffer. The >> above `message' statement should resolve whether this is the case. >>=20 >> > >> > Do you have any idea to solve this problem ? >> > >> > Regards >> > >> > Tchin >> > >> > >> > >> > >> > >> > ____________________________________________________ >> > >> > D=C3=A9couvrez Cocoon et Catpower dans notre s=C3=A9lection musicale f= olk sur Voila http://musiline.voila.fr >> > >> > >> > >> > >> > _______________________________________________ >> > Emacs-orgmode mailing list >> > Remember: use `Reply All' to send replies to the list. >> > Emacs-orgmode@gnu.org >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>=20 >>=20 > > ____________________________________________________ > > Retrouvez les meilleurs titres de Michael Jackson sur http://musiline.voi= la.fr/player/createtag/935918 Footnotes:=20 [1] http://cars9.uchicago.edu/~ravel/software/gnuplot-mode.html