]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-graph-add-curve): Moved the call to `calc-graph-set-styles' so
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 21 Sep 2004 18:52:00 +0000 (18:52 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 21 Sep 2004 18:52:00 +0000 (18:52 +0000)
the gnuplot buffer will appear in a separate window.

lisp/calc/calc-graph.el

index df7bbe377ab3c09a6474730902048e18f6e91cef..70d044c202e5cbd8b89092b639297c624cec7495 100644 (file)
              "title \"" (symbol-name (nth 1 ydata)) "\" "
              "with dots")
       (setq pstyle (and (eq (car-safe pstyle) 'vec) (nth (1+ num) pstyle)))
-      (setq lstyle (and (eq (car-safe lstyle) 'vec) (nth (1+ num) lstyle)))
-      (calc-graph-set-styles
-       (or (and (Math-num-integerp lstyle) (math-trunc lstyle))
-          0)
-       (or (and (Math-num-integerp pstyle) (math-trunc pstyle))
-          (if (eq (car-safe (calc-var-value (nth 2 ydata))) 'vec)
-              0 -1))))))
+      (setq lstyle (and (eq (car-safe lstyle) 'vec) (nth (1+ num) lstyle))))
+    (calc-graph-set-styles
+     (or (and (Math-num-integerp lstyle) (math-trunc lstyle))
+         0)
+     (or (and (Math-num-integerp pstyle) (math-trunc pstyle))
+         (if (eq (car-safe (calc-var-value (nth 2 ydata))) 'vec)
+             0 -1)))))
 
 (defun calc-graph-lookup (thing)
   (if (and (eq (car-safe thing) 'var)