mac安装gnuplot
使用命令安装:
brew install gnuplot --with-x11
进入gnuplot
gnuplot
正常的欢迎界面
G N U P L O T Version 4.6 patchlevel 6 last modified September 2014 Build System: Darwin x86_64 Copyright (C) 1986-1993, 1998, 2004, 2007-2014 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 ‘x11‘
出错的欢迎界面
G N U P L O T Version 4.6 patchlevel 6 last modified September 2014 Build System: Darwin x86_64 Copyright (C) 1986-1993, 1998, 2004, 2007-2014 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 ‘unknown’
Terminal type set to ‘unknown’ 错误及解决方法
到http://xquartz.macosforge.org/landing/ 下载dmg安装包安装
安装好mac用的x11 重启下电脑,如果不需要安装x11就不需要重启电脑
来个hello world
gnuplot> x=4 gnuplot> plot(x) gnuplot>
效果图
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。