美文网首页
octave plot 报错

octave plot 报错

作者: 弄码哥nomag | 来源:发表于2016-07-10 17:09 被阅读0次

今天试验一个简单的语句竟然报错了,并直接导致 octave 崩溃了。
语句如下:

x = [0 : 0.01 : 1]
y = sin(2 * pi * x)
plot(x, y)

可以看见,这就是个简单的、基础的作图语句。

报错如下:

warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10

分析一下错误原因,可能是 octave 安装的时候字体相关的东西安装的有问题。所以,简单粗暴的重装一下:

brew uninstall fontconfig
brew install fontconfig --universal

问题解决。

相关文章

网友评论

      本文标题:octave plot 报错

      本文链接:https://www.haomeiwen.com/subject/sbudjttx.html