commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(require 'ob) |
|
16 |
#@66 Default arguments to use when evaluating a gnuplot source block. |
|
17 |
(defvar org-babel-default-header-args:gnuplot '((:results . "file") (:exports . "results") (:session)) (#$ . 422)) |
|
18 |
#@31 Gnuplot specific header args. |
|
19 |
(defvar org-babel-header-args:gnuplot '((title . :any) (lines . :any) (sets . :any) (x-labels . :any) (y-labels . :any) (timefmt . :any) (time-ind . :any) (missing . :any) (term . :any)) (#$ . 608)) |
|
20 |
(defvar org-babel-gnuplot-timestamp-fmt nil) |
|
21 |
(defvar *org-babel-gnuplot-missing* nil) |
|
22 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable *org-babel-gnuplot-terms* funcall function #[0 "\300\207" [((eps . "postscript eps"))] 1] "List of file extensions and the associated gnuplot terminal." :group org-babel :type (repeat (cons (symbol :tag "File extension") (string :tag "Gnuplot terminal")))] 8) |
|
23 |
#@204 Extract variables from PARAMS and process the variables. |
|
24 |
Dumps all vectors into files and returns an association list |
|
25 |
of variable names and the related value to be used in the gnuplot |
|
26 |
code. |
|
27 |
|
|
28 |
(fn PARAMS) |
|
29 |
(defalias 'org-babel-gnuplot-process-vars #[257 "\301\236A\302\303\304\305\306\307!\310\"\311\312%\313!\")\207" [*org-babel-gnuplot-missing* :missing mapcar make-byte-code 257 "\211@A\211<\211\203+ \301@\211<\206 \2119\211\203 \202! \302\303\"\266\202\304\305!\300#\202, \266\202B\207" vconcat vector [org-babel-gnuplot-table-to-data mapcar list org-babel-temp-file "gnuplot-"] 10 "\n\n(fn PAIR)" org-babel--get-vars] 8 (#$ . 1277)]) |
|
30 |
#@78 Expand BODY according to PARAMS, return the expanded body. |
|
31 |
|
|
32 |
(fn BODY PARAMS) |
|
33 |
(defalias 'org-babel-expand-body:gnuplot #[514 "C\301 \302\303\304\305\306!\307\"\310$\216\311!\312\236A\313\236A\314\236A\315\236A\206= \205= \316!\317\320\227!\"A\206; \211\262\321\236A\322 \236A\323\n\236A\324\236A\325\f\236A\326
\236A\327\236A\206h \211\205h \330\331 \205q \332\331 !\302\333\334\305\306!\335\"\336\337%\203\213 \211\340\341\"!\210\203\242 \342\302\333\343\305\306!\344\"\345\346% \"\210\203\271 \342\302\333\347\305\306!\350\"\336\346%\"\210\203\311 \211\340\351\352\353\n\354#\"!\210\203\331 \211\340\355\352\356 \354#\"!\210\203\354 \211\357!\210\211\360\206\350 \361\362Q!\210\f\203\211\340\363\"!\210\211\242\364P\240\210 \203\211\340\365\f\"!\210\211\352\366\367!\370#!\210\342\302\333\371\305\306!\372\"\373\374%\"\210\2035\211\f!\210\n\203D\211\242\370
Q\240\210\203O\211\340\375\"!\210\266\242)\262\207" [*org-babel-gnuplot-terms* current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 org-babel-gnuplot-process-vars :file :prologue :epilogue :term file-name-extension assoc intern :title :line :set :xlabels :ylabels :timefmt :timeind 1 buffer-file-name file-name-directory 257 "\300\301\300\242Q\240\207" ["\n"] 5 "\n\n(fn TEXT)" format "set title '%s'" mapc "\300!\207" [] 3 "\n\n(fn EL)" "\300\301\302\"!\207" [format "set %s"] "set xtics (%s)" mapconcat #[257 "\300\301A@#\207" [format "\"%s\" %d"] 5 "\n\n(fn PAIR)"] ", " "set ytics (%s)" #[257 "\300\301A@#\207" [format "\"%s\" %d"] 5 "\n\n(fn PAIR)"] "set xdata time" "set timefmt \"" "%Y-%m-%d-%H:%M:%S" "\"" "set output \"%s\"" "\nset output\n" "set term %s" identity org-babel-variable-assignments:gnuplot "\n" "\300\301\302\303@\"A\300\242#\240\207" [replace-regexp-in-string format "\\$%s"] 6 "\n\n(fn PAIR)" "cd '%s'"] 25 (#$ . 1933)]) |
|
34 |
#@110 Execute a block of Gnuplot code. |
|
35 |
This function is called by `org-babel-execute-src-block'. |
|
36 |
|
|
37 |
(fn BODY PARAMS) |
|
38 |
(defalias 'org-babel-execute:gnuplot #[514 "\301\302!\210\303\236A\304\236A\305\"\306\307 \310\311\312\313\314!\315\"\316$\216\317\230\203r \320\321!\211\322\323\324!!\310\311\325\313\314!\326\"\316$\216r\211q\210\327Pc\210)r\211q\210\330\306\211\306\311%\210*\266\331\332\"\210\333\334\332\335\336\235\205d \337\"\"!\262\331\340\"\266\202\222 \341\342!r\211q\210\310\311\325\313\314!\343\"\316$\216\327Pc\210\344 \210\345 \210*\210\346\347!\235\205\233 )\262\207" [system-type require gnuplot :session :results org-babel-expand-body:gnuplot nil current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 "none" org-babel-temp-file "gnuplot-script-" get-buffer-create generate-new-buffer-name " *temp file*" "\301\300!\205 |