伙计们,
我最近更新了我的Ubuntu到13.10版本.令我惊讶的是,Ipython和Matplotlib仅在我之前的12.04 LTS安装版本之前的版本中可用.
当使用12.04时,我在我的存储库中设置了Julian Taylor PPA,这就是为什么(我认为)我从两个软件包中获得了最新版本的原因.
目前在13.10中的版本是:
Matplotlib:1.2.1(http://matplotlib.org/index.html,最新版本是1.3.1)
Ipython:0.13.2(http://ipython.org,最新版本是1.1.0 - 2013年9月)
是否有13.10的PPA可用?JTaylor ppa仅涵盖12.10(Quantal,由于堆栈交换中的声誉等级,链接不可用)
我应该在apt之外安装这些软件包吗?这不麻烦吗?
谢谢.
让我们从头开始:
Ipython版本:1.1.0
Matplotlib版本:1.3.1
Latex版本:pdfTeX 3.1415926-2.4-1.40.13(TeX Live 2012/Debian)
在Ubuntu 12.04 LTS内部.
我想在Ipython Notebook会话中绘制类似下面的内容.
# Using the magic encoding
# -*- coding: utf-8 -*-
fig_width_pt = 512#246.0 # Get this from LaTeX using
# \showthe\columnwidth
inches_per_pt = 1.0/72.27 # Convert pt to inch
golden_mean = (sqrt(5)-1.0)/2.0 # Aesthetic ratio
fig_width = fig_width_pt*inches_per_pt # width in inches
fig_height = fig_width*golden_mean # height in inches
fig_size = [fig_width,fig_height]
params = {'backend': 'ps',
'axes.labelsize': 10,
'text.fontsize': 10,
'legend.fontsize': 10,
'xtick.labelsize': 10,
'ytick.labelsize': 10,
'text.usetex': True, …
Run Code Online (Sandbox Code Playgroud)