使用命令安装:
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>
效果图
时间: 2024-09-30 20:26:31