SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S

1
(4)
2
(13)
3
(4)
4
(6)
5
(6)
6
7
8
(6)
9
(2)
10
(2)
11
(3)
12
(3)
13
(2)
14
(2)
15
(2)
16
(6)
17
(8)
18
(10)
19
(17)
20
(8)
21
(4)
22
(10)
23
(7)
24
(7)
25
(8)
26
(11)
27
(5)
28
29
(5)
30
31
(4)



Showing 13 results of 13

From: John P. <joh...@st...> - 2006年05月02日 23:58:25
As I understand it, you are having an issue with the alignment of pixels
and axis tickmarks.
Perhaps the following will help you to set up a workaround (check the
'0.5' values?)
http://sourceforge.net/mailarchive/message.php?msg_id=15509515
Maybe that helps.
Cheers
JP
Tommy Grav wrote:
> Hi,
>
> sorry for all the newbie questions. I have looked though the
> documentation 
> but have not found anything on how to handle the fact that matplotlib
> takes 
> the array indices as the lower left corner position for the value,
> while an image
> has its pixel values at the center of the pixel. Is there anything
> written on how 
> to handle this?
>
> Cheers
>
> Tommy
>
>
>
> tg...@ma... <mailto:tg...@ma...>
>
> http://homepage.mac.com/tgrav/
>
>
> "Any intelligent fool can make things bigger, 
> more complex, and more violent. It takes a 
> touch of genius -- and a lot of courage -- 
> to move in the opposite direction"
> -- Albert Einstein
>
>
From: Gary R. <gr...@bi...> - 2006年05月02日 23:48:54
I don't understand what you're asking here. Is there some unexpected 
interpolation going on? A small example might be useful to clarify if 
noone else steps forward with an answer.
Gary R.
Tommy Grav wrote:
> Hi,
> 
> sorry for all the newbie questions. I have looked though the 
> documentation 
> but have not found anything on how to handle the fact that matplotlib takes 
> the array indices as the lower left corner position for the value, while 
> an image
> has its pixel values at the center of the pixel. Is there anything 
> written on how 
> to handle this?
> 
> Cheers
> 
> Tommy
From: JUAN E. F. B. <jua...@ho...> - 2006年05月02日 19:43:24
Hi you all,
I have inserted a matplotlib figure into a gtk.VBox this way:
self.Box = gtk.VBox(False, 0)
self.Figure = Figure(figsize=(8, 4), facecolor=0.92, dpi=10)
self.axis=self.Figure.add_subplot(111)
self.canvas=FigureCanvasGTK(self.figure)
self.Box.pack_start(self.canvas, True, True)
The matoplotlib figure is inserted into the box this way...then i get a 
green "Frame" and a Figure area, both inside the box. However now i want to 
increase the matoplotlib figure area without increasing the box size...
How can i increase the figure area by decreasing the "frame" area?? is this 
possible??
Thanks for your answers in advance
regards
juan
From: Tommy G. <tg...@ma...> - 2006年05月02日 18:29:16
Hi,
 sorry for all the newbie questions. I have looked though the 
documentation
but have not found anything on how to handle the fact that matplotlib 
takes
the array indices as the lower left corner position for the value, 
while an image
has its pixel values at the center of the pixel. Is there anything 
written on how
to handle this?
Cheers
Tommy
tg...@ma...
http://homepage.mac.com/tgrav/
"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genius -- and a lot of courage --
to move in the opposite direction"
 -- Albert Einstein
From: Charlie M. <cw...@gm...> - 2006年05月02日 13:42:04
On 5/2/06, Lionel Roubeyrie <lro...@li...> wrote:
> hi,
> here is the output of repr(matplotlib):
> <module 'matplotlib' from
> '/usr/lib/python2.3/site-packages/matplotlib/__init__.pyc'>
>
> and matplotlib.__version__
> version : 0.82
Is this the same under python command-line and mod_python? If you are
getting different results, it is most likely because the environment
is different in some way.
From: Lionel R. <lro...@li...> - 2006年05月02日 13:00:32
hi,
here is the output of repr(matplotlib):
<module 'matplotlib' from
'/usr/lib/python2.3/site-packages/matplotlib/__init__.pyc'>
and matplotlib.__version__
version : 0.82
Le Mardi 02 Mai 2006 14:06, Charlie Moad a =E9crit=A0:
> Sounds like it is picking up on a file named matplotlib possibly. Try
> adding "print matplotlib.__file__" after the "import matplotlib" line.
> Make sure it is the same when running from the command line and
> mod_python.
>
> - Charlie
=2D-=20
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: Charlie M. <cw...@gm...> - 2006年05月02日 12:06:52
> Hi all,
> some students in our organisation sent me a problem with matplotlib and
> mod_python, a simple script generates a plot of temp/pressure, all works =
fine
> if they run it from the command-line, but if they use it from a apache we=
b
> server they receive this :
> ----------------------------------------------------
> Mod_python error: "PythonHandler mod_python.publisher"
>
> Traceback (most recent call last):
>
> File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299,=
 in
> HandlerDispatch
> result =3D object(req)
>
> File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 1=
36,
> in
> handler
> result =3D util.apply_fs_data(object, req.form, req=3Dreq)
>
> File "/usr/lib/python2.3/site-packages/mod_python/util.py", line 361, i=
n
> apply_fs_data
> return object(**args)
>
> File "/var/www/syrso_v2/tests/essai.py", line 11, in index
>
> AttributeError: 'module' object has no attribute 'use'
> ---------------------------------------------------------
>
> where the line 11 is :
> matplotlib.use('Agg')
> just after a import matplotlib!
Sounds like it is picking up on a file named matplotlib possibly. Try
adding "print matplotlib.__file__" after the "import matplotlib" line.
 Make sure it is the same when running from the command line and
mod_python.
- Charlie
From: Charlie M. <cw...@gm...> - 2006年05月02日 12:03:56
This should probably be on the matplotlib list, but 0.87.1 was
compiled against numpy 0.9.5. You have to use that version. This
type of problem won't happen as much once numpy hits 1.0. 0.87.2 was
compiled against numpy 0.9.6.
- Charlie
On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> I am working in windows and was having trouble with matplotlib 0.87.2,
> so I tried downgrading to 0.87.1, but now I can't get ipython -pylab
> to start. I get this message:
>
> C:\Python24\Scripts>python ipython -pylab
> Traceback (most recent call last):
> File "ipython", line 28, in ?
> IPython.Shell.start().mainloop()
> File "C:\Python24\Lib\site-packages\IPython\Shell.py", line 950, in sta=
rt
> return shell()
> File "C:\Python24\Lib\site-packages\IPython\Shell.py", line 865, in __i=
nit__
> shell_class=3DMatplotlibShell)
> File "C:\Python24\Lib\site-packages\IPython\Shell.py", line 55, in __in=
it__
> debug=3Ddebug,shell_class=3Dshell_class)
> File "C:\Python24\Lib\site-packages\IPython\ipmaker.py", line 90, in ma=
ke_IPyt
> hon
> embedded=3Dembedded,**kw)
> File "C:\Python24\Lib\site-packages\IPython\Shell.py", line 501, in __i=
nit__
> user_ns,b2 =3D self._matplotlib_config(name)
> File "C:\Python24\Lib\site-packages\IPython\Shell.py", line 390, in _ma=
tplotli
> b_config
> from matplotlib import backends
> File "C:\Python24\Lib\site-packages\matplotlib\backends\__init__.py", l=
ine 56,
> in ?
> new_figure_manager, draw_if_interactive, show =3D pylab_setup()
> File "C:\Python24\Lib\site-packages\matplotlib\backends\__init__.py", l=
ine 24,
> in pylab_setup
> globals(),locals(),[backend_name])
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.p=
y", lin
> e 9, in ?
> from backend_agg import FigureCanvasAgg
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py"=
, line
> 82, in ?
> from matplotlib.figure import Figure
> File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 6, in ?
> from axes import Axes, Subplot, PolarSubplot, PolarAxes
> File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 23, in ?
> from contour import ContourSet
> File "C:\Python24\Lib\site-packages\matplotlib\contour.py", line 18, in=
 ?
> import _contour
> File "C:\Python24\Lib\site-packages\matplotlib\_contour.py", line 17, i=
n ?
> from matplotlib._ns_cntr import *
> RuntimeError: module compiled against version 90500 of C-API but this ver=
sion of
> numpy is 90504
>
> I tried deleting the IPython, scipy, numpy, and matplotlib directories
> and reinstalling them, but it didn't help (I installed in the order
> numpy, scipy, matplotlib, Ipython).
>
> Ryan
>
> _______________________________________________
> IPython-user mailing list
> IPy...@sc...
> http://scipy.net/mailman/listinfo/ipython-user
>
From: Darren D. <dd...@co...> - 2006年05月02日 12:03:46
Hi Ryan,
I'm sorry you are having trouble. I'm sick and am unable to help you work 
through this today. You haven't mentioned what mpl version you are using, but 
I would suggest opening an ipython shell and trying to execute the command 
via the subprocess module.
Darren
On Tuesday 02 May 2006 1:44 am, Ryan Krauss wrote:
> So, I hacked my way through that problem, but now I have another with 
dvipng:
> > c:\python24\lib\site-packages\matplotlib\texmanager.py(250)make_png()
>
> -> raise RuntimeError('dvipng was not able to \
> (Pdb) l
> 245 process = Popen([command], shell=True, stdin=PIPE,
> stdout=PI PE,
> 246 stderr=STDOUT)
> 247 exit_status = process.wait()
> 248 if exit_status:
> 249 pdb.set_trace()
> 250 -> raise RuntimeError('dvipng was not able to \
> 251 process the flowing file:\n%s\nHere is the full report generated by
> dvip ng: \
> 252 \n\n'% dvifile + process.stdout.read())
> 253 else: verbose.report(process.stdout.read(), 'debug')
> 254 ## stdin, stdout, stderr = os.popen3(command)
> 255 ## verbose.report(stdout.read(), 'debug-annoying')
> (Pdb) command
> Out[4]: 'dvipng -bg Transparent -D "80.0" -T tight -o "C:\\Documents and
> Setting s\\Ryan
> Krauss\\.matplotlib\\tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.png" "C
>
> :\\Documents and Settings\\Ryan
> : Krauss\\.matplotlib\\tex.cache\3円c0a8beb4aca9ed9
>
> ba6656bce72309e6.dvi"'
> (Pdb) process.stdout.read()
> Out[4]: 'This is dvipng 1.6 Copyright 2002-2005 Jan-Ake
> Larsson\r\n\r\ndvipng: F atal error, bad -D parameter\r\n\r\n'
> (Pdb)
>
> But if I execute the command myself in a dos shell, I get no problems:
> C:\Documents and Settings\Ryan Krauss\.matplotlib\tex.cache>dvipng -bg
> Transpare nt -D "80.0" -T tight -o "C:\\Documents and Settings\\Ryan
> Krauss\\.matplotlib\\ tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.png"
> "C:\\Documents and Settings\\Ry an
> Krauss\\.matplotlib\\tex.cache\3円c0a8beb4aca9ed9ba6656bce72309e6.dvi" This
> is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
> [1]
>
> Ryan
>
> On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> > I found a thread about a recent fix to texmanager and backend_ps, but
> > I am still having a problem. It seems like the basic problem is that
> > os.system('cd c:\\temp') doesn't seem to work on windows:
> >
> > C:\Documents and Settings>python
> > Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on
> > win32 Type "help", "copyright", "credits" or "license" for more
> > information.
> >
> > >>> import os
> > >>> os.system('cd c:\\temp')
> >
> > 0
> >
> > >>> os.getcwd()
> >
> > 'C:\\Documents and Settings'
> >
> >
> > So, when texmanager tries to execute this command:
> > (Pdb) command
> > Out[3]: 'cd c:\\temp; latex -interaction=nonstopmode
> > "92ef4637f8938ad7ee6f05b388 9c7251.tex"'
> >
> > latex can't find the file because the working directory doesn't seem
> > to actually change.
> >
> > (This is in texmanager.py around line 200).
> >
> > Ryan
> >
> > On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> > > I am getting the following error from usetex under windows:
> > >
> > > Exception in Tkinter callback
> > > Traceback (most recent call last):
> > > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
> > > return self.func(*args)
> > > File
> > > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py",
> > > lin e 148, in resize
> > > self.show()
> > > File
> > > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py",
> > > lin e 151, in draw
> > > FigureCanvasAgg.draw(self)
> > > File
> > > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
> > > line 398, in draw
> > > self.figure.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 529,
> > > in draw for a in self.axes: a.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1465,
> > > in draw self.xaxis.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 562, in
> > > draw tick.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 161, in
> > > draw if self.label1On: self.label1.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 858, in
> > > draw self._mytext.draw(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 338, in
> > > draw bbox, info = self._get_layout(renderer)
> > > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 186, in
> > > _get_lay out
> > > w,h = renderer.get_text_width_height(
> > > File
> > > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
> > > line 249, in get_text_width_height
> > > Z = self.texmanager.get_rgba(s, size, self.dpi.get(), rgb)
> > > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > > 380, in ge t_rgba
> > > pngfile = self.make_png(tex, fontsize, dpi, force=False)
> > > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > > 209, in ma ke_png
> > > dvifile = self.make_dvi(tex, fontsize)
> > > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > > 190, in ma ke_dvi
> > > stdout=PIPE, close_fds=True)
> > > File "C:\Python24\lib\subprocess.py", line 500, in __init__
> > > raise ValueError("close_fds is not supported on Windows "
> > > ValueError: close_fds is not supported on Windows platforms
> > >
> > > Please help me.
> > >
> > > Thanks,
> > >
> > > Ryan
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Darren S. Dale, Ph.D.
dd...@co...
From: Lionel R. <lro...@li...> - 2006年05月02日 08:00:58
Hi all,
some students in our organisation sent me a problem with matplotlib and 
mod_python, a simple script generates a plot of temp/pressure, all works fine 
if they run it from the command-line, but if they use it from a apache web 
server they receive this :
----------------------------------------------------
Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
 File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch
 result = object(req)
 File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 136, 
in
handler
 result = util.apply_fs_data(object, req.form, req=req)
 File "/usr/lib/python2.3/site-packages/mod_python/util.py", line 361, in
apply_fs_data
 return object(**args)
 File "/var/www/syrso_v2/tests/essai.py", line 11, in index
AttributeError: 'module' object has no attribute 'use'
---------------------------------------------------------
where the line 11 is :
matplotlib.use('Agg')
just after a import matplotlib!
Thanks for any help
-- 
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: Ryan K. <rya...@gm...> - 2006年05月02日 05:50:26
So, I hacked my way through that problem, but now I have another with dvipn=
g:
> c:\python24\lib\site-packages\matplotlib\texmanager.py(250)make_png()
-> raise RuntimeError('dvipng was not able to \
(Pdb) l
245 process =3D Popen([command], shell=3DTrue, stdin=3DPIPE=
, stdout=3DPI
PE,
246 stderr=3DSTDOUT)
247 exit_status =3D process.wait()
248 if exit_status:
249 pdb.set_trace()
250 -> raise RuntimeError('dvipng was not able to \
251 process the flowing file:\n%s\nHere is the full report generated by=
 dvip
ng: \
252 \n\n'% dvifile + process.stdout.read())
253 else: verbose.report(process.stdout.read(), 'debug')
254 ## stdin, stdout, stderr =3D os.popen3(command)
255 ## verbose.report(stdout.read(), 'debug-annoying')
(Pdb) command
Out[4]: 'dvipng -bg Transparent -D "80.0" -T tight -o "C:\\Documents and Se=
tting
s\\Ryan Krauss\\.matplotlib\\tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.pn=
g" "C
:\\Documents and Settings\\Ryan Krauss\\.matplotlib\\tex.cache\3円c0a8beb4ac=
a9ed9
ba6656bce72309e6.dvi"'
(Pdb) process.stdout.read()
Out[4]: 'This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson\r\n\r\ndvip=
ng: F
atal error, bad -D parameter\r\n\r\n'
(Pdb)
But if I execute the command myself in a dos shell, I get no problems:
C:\Documents and Settings\Ryan Krauss\.matplotlib\tex.cache>dvipng -bg Tran=
spare
nt -D "80.0" -T tight -o "C:\\Documents and Settings\\Ryan Krauss\\.matplot=
lib\\
tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.png" "C:\\Documents and Setting=
s\\Ry
an Krauss\\.matplotlib\\tex.cache\3円c0a8beb4aca9ed9ba6656bce72309e6.dvi"
This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
[1]
Ryan
On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> I found a thread about a recent fix to texmanager and backend_ps, but
> I am still having a problem. It seems like the basic problem is that
> os.system('cd c:\\temp') doesn't seem to work on windows:
>
> C:\Documents and Settings>python
> Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on =
win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> os.system('cd c:\\temp')
> 0
> >>> os.getcwd()
> 'C:\\Documents and Settings'
> >>>
>
> So, when texmanager tries to execute this command:
> (Pdb) command
> Out[3]: 'cd c:\\temp; latex -interaction=3Dnonstopmode "92ef4637f8938ad7e=
e6f05b388
> 9c7251.tex"'
>
> latex can't find the file because the working directory doesn't seem
> to actually change.
>
> (This is in texmanager.py around line 200).
>
> Ryan
>
> On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> > I am getting the following error from usetex under windows:
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
> > return self.func(*args)
> > File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg=
.py", lin
> > e 148, in resize
> > self.show()
> > File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg=
.py", lin
> > e 151, in draw
> > FigureCanvasAgg.draw(self)
> > File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.p=
y", line
> > 398, in draw
> > self.figure.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 529, =
in draw
> > for a in self.axes: a.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1465, i=
n draw
> > self.xaxis.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 562, in=
 draw
> > tick.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 161, in=
 draw
> > if self.label1On: self.label1.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 858, in=
 draw
> > self._mytext.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 338, in=
 draw
> > bbox, info =3D self._get_layout(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 186, in=
 _get_lay
> > out
> > w,h =3D renderer.get_text_width_height(
> > File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.p=
y", line
> > 249, in get_text_width_height
> > Z =3D self.texmanager.get_rgba(s, size, self.dpi.get(), rgb)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 3=
80, in ge
> > t_rgba
> > pngfile =3D self.make_png(tex, fontsize, dpi, force=3DFalse)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 2=
09, in ma
> > ke_png
> > dvifile =3D self.make_dvi(tex, fontsize)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 1=
90, in ma
> > ke_dvi
> > stdout=3DPIPE, close_fds=3DTrue)
> > File "C:\Python24\lib\subprocess.py", line 500, in __init__
> > raise ValueError("close_fds is not supported on Windows "
> > ValueError: close_fds is not supported on Windows platforms
> >
> > Please help me.
> >
> > Thanks,
> >
> > Ryan
> >
>
From: Ryan K. <rya...@gm...> - 2006年05月02日 05:29:26
I found a thread about a recent fix to texmanager and backend_ps, but
I am still having a problem. It seems like the basic problem is that
os.system('cd c:\\temp') doesn't seem to work on windows:
C:\Documents and Settings>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on wi=
n32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('cd c:\\temp')
0
>>> os.getcwd()
'C:\\Documents and Settings'
>>>
So, when texmanager tries to execute this command:
(Pdb) command
Out[3]: 'cd c:\\temp; latex -interaction=3Dnonstopmode "92ef4637f8938ad7ee6=
f05b388
9c7251.tex"'
latex can't find the file because the working directory doesn't seem
to actually change.
(This is in texmanager.py around line 200).
Ryan
On 5/2/06, Ryan Krauss <rya...@gm...> wrote:
> I am getting the following error from usetex under windows:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.p=
y", lin
> e 148, in resize
> self.show()
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.p=
y", lin
> e 151, in draw
> FigureCanvasAgg.draw(self)
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py"=
, line
> 398, in draw
> self.figure.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 529, in=
 draw
> for a in self.axes: a.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1465, in =
draw
> self.xaxis.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 562, in d=
raw
> tick.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 161, in d=
raw
> if self.label1On: self.label1.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 858, in d=
raw
> self._mytext.draw(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 338, in d=
raw
> bbox, info =3D self._get_layout(renderer)
> File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 186, in _=
get_lay
> out
> w,h =3D renderer.get_text_width_height(
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py"=
, line
> 249, in get_text_width_height
> Z =3D self.texmanager.get_rgba(s, size, self.dpi.get(), rgb)
> File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 380=
, in ge
> t_rgba
> pngfile =3D self.make_png(tex, fontsize, dpi, force=3DFalse)
> File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 209=
, in ma
> ke_png
> dvifile =3D self.make_dvi(tex, fontsize)
> File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 190=
, in ma
> ke_dvi
> stdout=3DPIPE, close_fds=3DTrue)
> File "C:\Python24\lib\subprocess.py", line 500, in __init__
> raise ValueError("close_fds is not supported on Windows "
> ValueError: close_fds is not supported on Windows platforms
>
> Please help me.
>
> Thanks,
>
> Ryan
>
From: Ryan K. <rya...@gm...> - 2006年05月02日 05:07:15
I am getting the following error from usetex under windows:
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
 return self.func(*args)
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py"=
, lin
e 148, in resize
 self.show()
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py"=
, lin
e 151, in draw
 FigureCanvasAgg.draw(self)
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py", =
line
398, in draw
 self.figure.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 529, in d=
raw
 for a in self.axes: a.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1465, in dr=
aw
 self.xaxis.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 562, in dra=
w
 tick.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 161, in dra=
w
 if self.label1On: self.label1.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 858, in dra=
w
 self._mytext.draw(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 338, in dra=
w
 bbox, info =3D self._get_layout(renderer)
 File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 186, in _ge=
t_lay
out
 w,h =3D renderer.get_text_width_height(
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py", =
line
249, in get_text_width_height
 Z =3D self.texmanager.get_rgba(s, size, self.dpi.get(), rgb)
 File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 380, =
in ge
t_rgba
 pngfile =3D self.make_png(tex, fontsize, dpi, force=3DFalse)
 File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 209, =
in ma
ke_png
 dvifile =3D self.make_dvi(tex, fontsize)
 File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 190, =
in ma
ke_dvi
 stdout=3DPIPE, close_fds=3DTrue)
 File "C:\Python24\lib\subprocess.py", line 500, in __init__
 raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms
Please help me.
Thanks,
Ryan

Showing 13 results of 13

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /