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.
Thanks in advance.
;;
;; 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"))