我最近将我的笔记本电脑升级到Snow Leopard,将TeX更新到版本3.1415926(TeX Live 2011/MacPorts 2011_5),并安装了Python 2.7.3.完成所有这些安装后,我运行了macport selfupdate和macport升级过时.但是,现在当我尝试在matplotlib中使用TeX时,我会收到以下信息:
LaTeX was not able to process the following string:'lp'
Here is the full report generated by LaTeX:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011/MacPorts 2011_5)
restricted \write18 enabled.
entering extended mode (./64a53cc27244d5ee10969789771e33fa.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, cz
ech, slovak, dutch, ukenglish, usenglishmax, basque, french, german-x-2009-06-1
9, ngerman-x-2009-06-19, german, ngerman, swissgerman, italian, polish, portugu
ese, spanish, catalan, galician, ukenglish, loaded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h …Run Code Online (Sandbox Code Playgroud) 我正在尝试做一些相对简单的事情:
我希望能够增加一个字母的字体(例如一个LaTeX变量,比如30),并将标签中的其他字母保持为某种字体(比如20).
有人有快速解决方案吗?这对我来说似乎相当复杂.我尝试使用{ }标签中的每个"项目"
plt.plot(a,b,'g',linewidth=3.5, label = 'a')
plt.plot(c,d,'r',linewidth=3.5, label = 'c')
plt.legend(labelspacing = 1.0,loc=1,prop={'size':40})
plt.xlabel({'a',fontsize=50},{ 'N',fontsize = 20})
plt.ylabel('%',fontsize =30)
Run Code Online (Sandbox Code Playgroud)
谢谢!
我title对每个图形(D2 / E,D3 / E和D4 / E)都使用a,suptitle对标题1和2使用a ,但是它们具有相同的字体大小。是否有解决方案以使标题1和标题2具有不同的大小?
我已经使用LaTeX 看到了此解决方案,但是问题是当我使用plt.rc('text', usetex=True)每种字体和文本时都会更改。而且,我在每个标题中都使用了变量,看起来我用LaTeX无法做到这一点。