ubuntu下安装numpy,scipy,matplotlib 安装numpy sudo apt-get install python-numpy 安装scipy sudo apt-get install python-scipy 安装matplotlib step1、sudo apt-get install python-matplotlib (会顺便安装一些其他的依赖库) step2、sudo pip install matplotlib 未分类 桩白墨 2015-06-29 1 热度 0评论
ubuntu下配置LaTex中文环境 这个让我折腾得够久的。下面直接上干货。 安装LaTex,使用命令(1G多一点): sudo apt-get install texlive-full 安装一个编辑器。我直接使用集成环境KILE。到软件中心安装。 写LaTex源程序时,注意选择中文字体。LaTex代码中使用(以WenQuanYi Zen Hei为例) \setmainfont{WenQuanYi Zen Hei} % 设置文档默认字 未分类 桩白墨 2015-06-29 2 热度 0评论
Matplotlab显示灰度图问题 我想要使用Matplotlab显示图片转换后的灰度图。代码如下: from PIL import Image from pylab import * im = array(Image.open('tiger.jpg').convert('L')) imshow(im) show() 与书上的例子几乎一模一样,运行结果却是这样: 未分类 桩白墨 2015-06-28 2 热度 0评论