From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: No image output from Maxima in Babel Date: Sat, 6 Feb 2016 14:20:10 +0000 Message-ID: <87mvrdq5t1.fsf@ucl.ac.uk> References: <87wpqiq1mb.fsf@psu.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS3ik-0005q2-Hw for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 09:20:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS3ih-0004Wd-9V for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 09:20:18 -0500 Received: from mail-db3on0137.outbound.protection.outlook.com ([157.55.234.137]:38888 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS3ih-0004WW-0B for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 09:20:15 -0500 In-Reply-To: <87wpqiq1mb.fsf@psu.edu> (Zachary Peterson's message of "Fri, 5 Feb 2016 16:38:20 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Zachary Peterson Cc: emacs-orgmode@gnu.org On Friday, 5 Feb 2016 at 16:38, Zachary Peterson wrote: > Hello, > > After recently learning about Babel, I've been working my way through > some of the examples in the various languages' documentation, and I've > run into a problem with Maxima. I evaluated this code, taken from the > documentation at > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-maxima.html#sec-4-3, > with only the filename changed: > > #+name: 3d-maxima > #+header: :file maxima-3d.png > > #+header: :exports results > #+header: :results graphics > > #+begin_src maxima > programmode: false; > plot3d(atan(-x^2+y^3/4),[x,-4,4],[y,-4,4],[grid,50,50],[gnuplot_pm3d,true]); > #+end_src > > > It returns this: > > #+RESULTS: 3d-maxima > [[file:maxima-3d.png]] > > The file is empty, though. Confirmed. You haven't said what version you are using or what kind of system you are running on so I will assume up to date org on Linux as why would you be doing otherwise ;-) What is happening is that maxima, at least on my system (Debian testing), is creating the plot in my home directory and not where the org file is. Check your home directory to see if the plot is there. If you specify a full path, e.g. /tmp/maxima-3d.png, it may work for you (it does for me) although obviously this is less than ideal. The fix would be to have the argument to set_plot_option for the gnuplot_plot_file be a fully qualified file name. (beyond my ability to fix unfortunately) HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3.3-548-g99697a