环境:ubuntu12.04LTS

安装gnuplot:

sudo apt-get install gnuplot

问题1:总是提示找不到软件包,换过好几个源都不行,索性把所有的源都加上了,但是还不行,偶然发现运行下面这行命令之后出现刚接触ubuntu时更换源的方法:

gksu /usr/bin/software-properties-gtk


刚开始当然显示的不是这样,上面五个对号一个都没有,而且也不是在sjtu的网站下载,而是“主服务器”,怕出问题所以五个全部打勾,并选择sjtu,怪不得以前sudo apt-get总是找不到软件包(当然只是我觉得问题在这里)。

更新软件源,改变设置后,终端运行:gnuplot出现如下情况:


当然一开始也不是这样的,一开始是Terminal type set to ‘unknown’,需要安装x11库才能改为Terminal type set to 'x11'或者现在的'wxt'。如果是unknown的话,在gnuplot中执行plot命令是无法显示图片的。

如果解决了软件源的问题(也就是问题1),那一行命令就可以解决,如果上面一条不行,下面那个也可以帮助你:

sudo apt-get install gnuplot-x11   //和下面一条命令2选1
sudo apt-get install libx11-dev


GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 17 小时前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 17 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐