mac安装gnuplot

时间:2015-06-12 01:15:30   收藏:0   阅读:2551

使用命令安装:

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>


效果图

技术分享

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!