help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot plot with gnuplot


From: ishi soichi
Subject: cannot plot with gnuplot
Date: Thu, 13 Oct 2011 16:39:48 +0900

Hi. I have recently installed Octave so that I can use it with Emacs.

My environment:
MacOSX SnowLeopard
Cocoa Emacs 23.2
Octave 3.2.3
gnuplot 4.5
Maxima 5.25

I'm simply trying to plot a data set given in the form of csv.(if you need to see the data set, please let me know. But it's a simple csv file that can be plotted in 2d)
But the following command gives the error.


octave-3.2.3> data = "">
octave-3.2.3> x = data(:, 1); y = data(:, 2);
octave-3.2.3> m = length(y);
octave-3.2.3> plot(x, y, 'rx', 'MarkerSize', 10);

gnuplot> set terminal aqua enhanced title "Figure 1" size 560 420
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list



A cause of this problem might be that I'm using Maxima as well.  And for that, gnuplot is set up already.
Both Maxima and Octave are ready to use in Emacs.  I'm guessing there is some conflict between these applications.
Or maybe not.

I have added a portion of .emacs file that sets up Maxima (with gnuplot) and octave at the end of this mail.

Could anyone point out the problem causing the error above?

Thanks in advance.

soichi



;;
;; octave mode
;;
(setq exec-path
(append (list
"/Applications/Octave.app/Contents/Resources/bin") exec-path))
(autoload 'octave-mode "octave-mod" nil t)
(setq auto-mode-alist
           (cons '("\\.m$" . octave-mode) auto-mode-alist))
(add-hook 'octave-mode-hook
               (lambda ()
                 (abbrev-mode 1)
                 (auto-fill-mode 1)
                 (if (eq window-system 'x)
                     (font-lock-mode 1))))
;;--------------------------------------------------
;;
;;   Maxima
;;
(setq exec-path
(append (list
"/Applications/Maxima.app/bin"
"/Applications/Emacs.app/Contents/Resources/lisp/imaxima-imath/"
"/Applications/Gnuplot.app/bin"
"/Applications/Ghostscript.app/bin"
"/Applications/teTeX.app/bin") exec-path))
(add-to-list 'load-path "/Applications/Emacs.app/Contents/Resources/lisp/imaxima-imath")
(setq imaxima-latex-preamble "\\usepackage{eulervm}")
;;; add autoload of imaxima and imath.
(autoload 'imaxima "imaxima" "Image support for Maxima." t)
(autoload 'imath "imath" "Interactive Math mode" t)
;;(setq auto-mode-alist (cons '("\\.mac" . maxima-mode) auto-mode-alist))
(setenv "PATH" (concat (getenv "PATH") ":/Applications/gnuplot.app/bin"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]