解決gnuplot中'Terminal type set to 'unknown'不能顯示繪圖的問題

安裝gnuplot:測試

sudo apt-get install gnuplot

安裝成功後,在終端輸入gnuplot,進入gnuplot。spa

直接進行一個小測試:code

plot sin(x)

發現不能顯示繪製的圖。其實,緣由是出現了'Terminal type set to 'unknown'這樣的問題。blog

往上翻看安裝過程當中出現的提示,能夠發現gnuplot還要基於gnuplot-x11或gnuplot-qt工做。因而安裝gnuplot-x11:圖片

sudo apt-get install gnuplot-x11

安裝完後,再次在終端輸入gnuplot進入gnuplot:get

再次測試plot sin(x),此次就有圖片顯示出來了!qt

okay,mark一下,但願有點幫助。class

相關文章
相關標籤/搜索