techjollof / scitools

Automatically exported from code.google.com/p/scitools
Other
0 stars 0 forks source link

Plotting problem with Matplotlib backend - Windows 7 (32 bits) #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from scitools.std import *
2. x = linspace(0, 2*pi, 100); y = exp(sin(x**2))
3. plot(x, y, 'b-o')

What is the expected output? What do you see instead?
I expect to see a plot of f(x) = exp(sin(x**2))! 
My IPython session look as the following:

In [1]: from scitools.std import *
scitools.easyviz backend is matplotlib

In [2]: x = linspace(0, 2*pi, 100); y = exp(sin(x**2))

In [3]: plot(x, y, 'b-o')
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX)
entering extended mode
("C:\Program Files\MiKTeX\tex\latex\config\latex.ini"
("C:\Users\Steeve Brechmann\AppData\Roaming\MiKTeX\2.8\tex\generic\config\pdfte
xconfig.tex")
("C:\Program Files\MiKTeX\tex\latex\base\latex.ltx"
("C:\Program Files\MiKTeX\tex\latex\00miktex\texsys.cfg")
./texsys.aux found

\@currdir set to: ./.

Assuming \openin and \input
have the same search path.

Defining UNIX/DOS style filename parser.

catcodes, registers, compatibility for TeX 2,  parameters,
LaTeX2e <2009/09/24>
hacks, control, par, spacing, files, font encodings, lengths,
====================================

Local config file fonttext.cfg used

====================================
("C:\Program Files\MiKTeX\tex\latex\00miktex\fonttext.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\fonttext.ltx"
=== Don't modify this file, use a .cfg file instead ===

("C:\Program Files\MiKTeX\tex\latex\base\omlenc.def")
("C:\Program Files\MiKTeX\tex\latex\base\t1enc.def")
("C:\Program Files\MiKTeX\tex\latex\base\ot1enc.def")
("C:\Program Files\MiKTeX\tex\latex\base\omsenc.def")
("C:\Program Files\MiKTeX\tex\latex\base\t1cmr.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmr.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmss.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ot1cmtt.fd")))
====================================

Local config file fontmath.cfg used

====================================
("C:\Program Files\MiKTeX\tex\latex\00miktex\fontmath.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\fontmath.ltx"
=== Don't modify this file, use a .cfg file instead ===

("C:\Program Files\MiKTeX\tex\latex\base\omlcmm.fd")
("C:\Program Files\MiKTeX\tex\latex\base\omscmsy.fd")
("C:\Program Files\MiKTeX\tex\latex\base\omxcmex.fd")
("C:\Program Files\MiKTeX\tex\latex\base\ucmr.fd")))
====================================

Local config file preload.cfg used

=====================================
("C:\Program Files\MiKTeX\tex\latex\base\preload.cfg"
("C:\Program Files\MiKTeX\tex\latex\base\preload.ltx")) page nos., x-ref,
environments, center, verbatim, math definitions, boxes, title, sectioning,
contents, floats, footnotes, index, bibliography, output,
===========================================
Local configuration file hyphen.cfg used
===========================================
("C:\Program Files\MiKTeX\tex\generic\babel\hyphen.cfg"
("C:\Program Files\MiKTeX\tex\generic\hyphen\hyphen.tex")
("C:\Program Files\MiKTeX\tex\generic\hyphen\dumyhyph.tex")
("C:\Program Files\MiKTeX\tex\generic\hyphen\zerohyph.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-de-1901.tex"
German Hyphenation Patterns (Traditional Orthography)
("C:\Program Files\MiKTeX\tex\generic\hyphen\dehypht.tex"
German Traditional Hyphenation Patterns `dehypht' Version 3.2a <1999/03/03>
(Formerly known under the name `ghyph31' and `ghyphen'.)))
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-de-1996.tex"
German Hyphenation Patterns (Reformed Orthography)
("C:\Program Files\MiKTeX\tex\generic\hyphen\dehyphn.tex"
New German Hyphenation Patterns `dehyphn' Rev.31 <2001-05-07> (WaS)))
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehypht-x-2009-06-19.tex"
Using an 8-bit TeX engine.
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehypht-x-2009-06-19.pat"
German Hyphenation Patterns (Traditional Orthography) `dehypht-x' 2009-06-19 (W
L))) ("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehyphn-x-2009-06-19.te
x" Using an 8-bit TeX engine.
("C:\Program Files\MiKTeX\tex\generic\dehyph-exptl\dehyphn-x-2009-06-19.pat"
German Hyphenation Patterns (Reformed Orthography, 2006) `dehyphn-x' 2009-06-19
 (WL))) ("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\loadhyph\loadhyph-fr.te
x" EC French hyphenation patterns (V2.12, 2002/12/11)
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\patterns\tex-special\spechyph-o
t1-fr.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\conversions\conv-utf8-ec.tex")
("C:\Program Files\MiKTeX\tex\generic\hyph-utf8\patterns\tex\hyph-fr.tex")))
=================================
Applying patch file ltpatch.ltx
=================================
("C:\Program Files\MiKTeX\tex\latex\base\ltpatch.ltx")
 ) )
Beginning to dump on file latex.fmt
 (preloaded format=latex 2010.9.27)
4970 strings of total length 69323
44163 memory locations dumped; current usage is 144&42176
3306 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
3633 words of font info for 14 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 56740 has 1474 ops out of 35111
  88 for language 7
  374 for language 6
  387 for language 5
  235 for language 4
  207 for language 3
  2 for language 1
  181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on latex.log.
Trying to make PK font cmr12 at 320 DPI...
Creating cmr12.pk...
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8)
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8) (INIMF)
(C:\Program Files\MiKTeX\metafont\config\mf.ini
(C:\Program Files\MiKTeX\metafont\base\plain.mf
Preloading the plain base, version 2.71: preliminaries,
 basic constants and mathematical macros,
 macros for converting from device-independent units to pixels,
 macros and tables for various modes of operation,
 macros for drawing and filling,
 macros for proof labels and rules,
 macros for character and font administration,
and a few last-minute items.) (C:\Program Files\MiKTeX\metafont\misc\modes.mf)
)
Beginning to dump on file mf.base
 (preloaded base=mf 2010.9.27)
2225 strings of total length 30077
11864 memory locations dumped; current usage is 3658&7844
1004 symbolic tokens
Transcript written on mf.log.

(C:\Program Files\MiKTeX\fonts\source\public\cm\cmr12.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX\fonts\source\public\cm\roman.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanu.mf [65] [66] [67]
[68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82]
[83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanl.mf [97] [98] [99]
[100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greeku.mf [0] [1] [2] [3]
[4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romand.mf [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanp.mf [36] [38] [63]
[62]) (C:\Program Files\MiKTeX\fonts\source\public\cm\romspl.mf [16] [17]
[25] [26] [27] [28]) (C:\Program Files\MiKTeX\fonts\source\public\cm\romspu.mf
[29] [30] [31]) (C:\Program Files\MiKTeX\fonts\source\public\cm\punct.mf
[33] [60] [35] [37] [39] [40] [41] [42] [43] [44] [46] [47] [58] [59] [61]
[64] [91] [93] [96]) (C:\Program Files\MiKTeX\fonts\source\public\cm\accent.mf
[18] [19] [20] [21] [22] [23] [24] [32] [94] [95] [125] [126] [127])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romlig.mf [11] [12] [13]
[14] [15]) (C:\Program Files\MiKTeX\fonts\source\public\cm\comlig.mf [34]
[45] [92] [123] [124]) ) )
Font metrics written on cmr12.tfm.
Output written on cmr12.320gf (128 characters, 16024 bytes).
Transcript written on cmr12.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk.exe...
This is GFtoPK, Version 2.3 (MiKTeX 2.8)
'METAFONT output 2010.09.27:0955'
16024 bytes packed to 6664 bytes.
dvipng warning: font cmr12 at 320 dpi not found, characters will be left blank 
dvipng warning: unable to draw glyph 48, skipping Trying to make PK font cmmi12 
at 320 DPI...
Creating cmmi12.pk...
Running miktex-mf.exe...
This is METAFONT, Version 2.718281 (MiKTeX 2.8)

(C:\Program Files\MiKTeX\fonts\source\public\cm\cmmi12.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX\fonts\source\public\cm\mathit.mf
(C:\Program Files\MiKTeX\fonts\source\public\cm\romanu.mf [65] [66] [67]
[68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82]
[83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX\fonts\source\public\cm\itall.mf [97] [98] [99]
[100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greeku.mf [0] [1] [2] [3]
[4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX\fonts\source\public\cm\greekl.mf [11] [12] [13]
[14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28]
[29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39])
(C:\Program Files\MiKTeX\fonts\source\public\cm\italms.mf [64] [96] [123]
[124] [125] [126] [127])
(C:\Program Files\MiKTeX\fonts\source\public\cm\olddig.mf [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX\fonts\source\public\cm\romms.mf [40] [41] [42]
[43] [44] [45] [46] [47] [58] [59] [60] [61] [62] [63] [91] [92] [93] [94]
[95]) ) )
Font metrics written on cmmi12.tfm.
Output written on cmmi12.320gf (128 characters, 16632 bytes).
Transcript written on cmmi12.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk.exe...
This is GFtoPK, Version 2.3 (MiKTeX 2.8)
'METAFONT output 2010.09.27:0956'
16632 bytes packed to 8432 bytes.
dvipng warning: font cmmi12 at 320 dpi not found, characters will be left blank 
dvipng warning: unable to draw glyph 58, skipping Out[3]: 
[<scitools.easyviz.common.Line object at 0x03A67750>]

What version of the product are you using? On what operating system?
I use python-scitools 0.7 under a Windows 7 32 bits.

Please provide any additional information below.
I've installed the Python(x, y) package and after the python-scitools.
I have the Latex distribution named MiKTeX 2.8.

Python-scitools works great under Ubuntu 10.04 but I want to be able to run it 
in Windows 7 too.

Original issue reported on code.google.com by steevebr...@gmail.com on 27 Sep 2010 at 2:05

GoogleCodeExporter commented 9 years ago
Try to turn off LaTeX when using the Matplotlib backend. See:

http://code.google.com/p/scitools/wiki/EasyvizDocumentation#I_Get_Strange_Errors
_Saying_Something_About_LaTeX

Original comment by johannes...@gmail.com on 28 Sep 2010 at 6:27