2016-02-24 38 views
0

我按照http://orgmode.org/manual/Org_002dPlot.html上的說明使用org-plot。我安裝了Gnuplot和Gnuplot模式。org-plot無效

我試圖調用org-plot/gnuplot沒有影響這個例子

#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]" 
| Sede  | Max cites | H-index | 
|-----------+-----------+---------| 
| Chile  | 257.72 | 21.39 | 
| Leeds  | 165.77 | 19.68 | 
| Sao Paolo |  71.00 | 11.50 | 
| Stockholm | 134.19 | 14.33 | 
| Morelia | 257.56 | 17.67 | 

,我剛剛得到這個消息緩衝區gnuplot-mode 0.7-beta (gnuplot 5.0) -- report bugs with "C-c C-u"

歡迎任何幫助 感謝!

回答

1

這可能是gnuplot的問題,而不是org-mode;特別是您的系統可能不支持終端類型。在emacs中切換到gnuplot緩衝區並查看是否有錯誤。您也可以從命令行啓動gnuplot會話並複製該緩衝區中的所有命令,並使用該數據檢查臨時文件。不幸的是,組織積/ gnuplot的刪除在第一個空閒機會數據文件,所以你可能要在ORG-plot.el暫時註釋掉這一行:

(run-with-idle-timer 0.1 nil #'delete-file data-file) 

這是行293在我的版本。該文件的內容應該是:

"Chile" 257.72 21.39 
"Leeds" 165.77 19.68 
"Sao Paolo" 71.00 11.50 
"Stockholm" 134.19 14.33 
"Morelia" 257.56 17.67 

gnuplot的緩衝區應該包含這樣的事情:

G N U P L O T 
Version 5.0 patchlevel 1 last modified 2015-06-07 

Copyright (C) 1986-1993, 1998, 2004, 2007-2015 
Thomas Williams, Colin Kelley and many others 

gnuplot home:  http://www.gnuplot.info 
faq, bugs, etc: type "help FAQ" 
immediate help: type "help" (plot window: hit 'h') 

Terminal type set to 'qt' 
gnuplot> reset 
gnuplot> set title 'Citas' 
gnuplot> set yrange [0:] 
gnuplot> set datafile separator "\t" 
gnuplot> plot '/tmp/org-plot14647Q7f' using 3:xticlabel(1) with histograms title 'H-index' 

希望這有助於。