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





Showing results of 292

<< < 1 .. 8 9 10 11 12 > >> (Page 10 of 12)
From: John H. <jdh...@ac...> - 2005年10月06日 17:15:45
>>>>> "Mark" == Mark Bakker <ma...@gm...> writes:
 Mark> Hey John - Any chance you can put a win32 install file of
 Mark> mpl 0.84 for Python 2.3 on the download page? I am teaching
 Mark> a class on computational methods, and I really would like
 Mark> the students to use the updated axis('equal') functionality.
 Mark> Would be much appreciated.
Hey Mark -- Coincidentally, I've been working on this this morning.
It's been a pain mainly because I have a new build machine and getting
gtk to compile on win32 is no fun. I just uploaded the file so take
it for a test drive and good luck with your class!
JDH
From: John H. <jdh...@ac...> - 2005年10月06日 17:15:41
>>>>> "Alexander" == Alexander Borghgraef <ale...@gm...> writes:
 Alexander> One never ceases to learn :-) I discovered ldd, and
 Alexander> when I run it on the offending file _nc_image.so, I see
 Alexander> that libpng isn't linked into it at all. So there's
 Alexander> probably an linking option set wrong in setupext.py
 Alexander> responsable for linking libpng. I'll try and find it,
 Alexander> but if anyone here can save me some time and tell me,
 Alexander> I'd greatly appreciate it.
The place to start poking around is in setupext.py's build_image
This function does a numerix switch to add flags for Numeric and
numarray if it finds them. Both paths (Numeric and numarray) call
 add_agg_flags(module)
and add_agg_flags calls
 module.libraries.append('png')
so libpng should be in your link chain. Since you have a nonstandard
Numeric install, make sure the numerix logic is working as it should
(eg what is the value of "numerix" in build_image?)
I suggest rm -rf ing your build subdir and starting cleanly.
Let us know what you find....
JDH
From: Mark B. <ma...@gm...> - 2005年10月06日 16:51:52
Hey John -
Any chance you can put a win32 install file of mpl 0.84 for Python 2.3
on the download page?
I am teaching a class on computational methods, and I really would
like the students to use the updated axis('equal') functionality.
Would be much appreciated.
Thanks,
Mark
From: Humufr <hu...@ya...> - 2005年10月06日 15:13:24
 Hi,
I'm trying to change a figure I just plot, the size or the face color etc...
I used the figure fonction in ipython:
a = arange(10)
plot(a)
figure(num=1, figsize=(10,10),facecolor='w')
but that change nothing on the figure 1.
I read the doc and I see:
figure : create or change active figure
so there are something I miss or misundertand so could explain me where 
is my error.
Thanks,
Nicolas
From: Gary R. <gr...@bi...> - 2005年10月06日 13:49:28
Alan G Isaac wrote:
>> On 2005年10月06日, Gary Ruben apparently wrote: 
>>> Your example works fine on my Win2k + MiKTeX setup with Matplotlib 0.83 
> 
> On Thu, 6 Oct 2005, Alan G Isaac apparently wrote: 
>> You see the \alpha in his example?? 
>> Alan Isaac 
>> Using Win2K + MiKTeX + Matplotlib 0.83.2 
> 
> 
> Oops. Too hair trigger on the send button.
> Deleting the cache worked.
> But why?
I don't know, but I had noticed in the past that this sometimes makes a 
difference. Not that it explains anything, but I'd say that the cache 
mechanism could do with some improvement.
I think it seemed to me to be the font cache rather than the TeX cache 
which made the difference.
I will now relate, for the record, that if anyone is trying to get TeX 
support to work with Windows 98, they will be unsuccessful for the 
following reasons:
There is a problem with MPL's TeX and PS support under Windows 98 where 
Win98 generates resource errors. This is related to Win98's awful pipes 
support; popen2 and popen3 calls basically do not work properly.
I have tried adding close() calls to the pipe input handle following 
each usage of a pipe. The idea is to force the pipes to be flushed. This 
improves the situation, although it does not guarantee a 100% fix, since 
I think the close() call requests that Windows flush and destroy the 
pipes but this can take an indeterminate time to act on. I don't know of 
a better way of doing this like any method of checking that a pipe has 
finished all its I/O activities.
One day I may try changing the os.popen calls to os.spawnl instead, 
since this approach should work.
The other small problem is something I suggested in a previous post 
(dated July 10th) which was not implemented, to do with Win98 returning 
"DVIPNG.EXE" instead of "dvipng" in response to
running "dvipng --version".
The fix here is to change the line:
 if line.startswith('dvipng '):
to
 if line.lower().startswith('dvipng'):
For now, I'll just use my Win2k machine.
Gary
From: John H. <jdh...@ac...> - 2005年10月06日 13:49:10
>>>>> "Alan" == Alan G Isaac <ai...@am...> writes:
 Alan> Oops. Too hair trigger on the send button. Deleting the
 Alan> cache worked. But why? I saw the problem the first time I
 Alan> ran his example. What exactly is being cached?
We run a md5 hash on the tex string itself and use that for the base
filename of the cache. The tex , dvi and png files are cached. I am
not sure why you needed to delete the cache on this one. If you can
replicate the problem, perhaps you can take a look at texmanager.py
and see what is going wrong. The module is fairly straigtforward.
Thanks,
JDH
From: John H. <jdh...@ac...> - 2005年10月06日 13:43:57
>>>>> "Christopher" == Christopher Mutel <cm...@gm...> writes:
 Christopher> I'm having trouble compiling 0.84 on Python 2.4 /
 Christopher> Ubuntu Hoary (5.04). It seems like when GCC tries to
 Christopher> build ft2font it can't find the two files referenced
 Christopher> in CXX/extensions.hxx and CXX/objects.hxx.
Do you mean CXX/Extensions.hxx and CXX/Objects.hxx? I just untarred
the 0.84 distribution and they are certainly there
 peds-pc311:/var/tmp/matplotlib-0.84> ls CXX/
 Config.hxx cxxsupport.cxx IndirectPythonInterface.cxx Version.hxx
 cxxextensions.c Exception.hxx IndirectPythonInterface.hxx
 cxx_extensions.cxx Extensions.hxx Objects.hxx
Are you running setup.py from the dir in which it resides, eg
 > python setup.py build
If so CXX/Extensions.hxx and CXX/Objects.hxx will be in your '.' (ie
current dir) include path. Perhaps there is a problem with include
flags in setupext.py. Try replacing the add_base_flags function in
that file with this one:
def add_base_flags(module):
 incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform]
 if os.path.exists(p)]
 libdirs = [os.path.join(p, 'lib') for p in basedir[sys.platform]
 if os.path.exists(p)]
 module.include_dirs.extend(incdirs)
 module.include_dirs.append('.') 
 module.library_dirs.extend(libdirs)
 Christopher> I installed (through apt) python-cxx, but this didn't
 Christopher> seem to change anything.
No, we use our own CXX
 Christopher> This seems like a completely trivial problem
 Christopher> (especially compared to the other frutrations I have
 Christopher> had with matplotlib in the past), but I don't know
 Christopher> how to fix it...
Perhaps the approach above will fix it. If not, you may want to
enable universe and multiverse in your /etc/apt/sources.list and then
add
deb http://peds-pc311.bsd.uchicago.edu binary/
and do
 > sudo apt-get update
 > sudo apt-get python-matplotlib-jdh
These are hoary debs that I maintain for our local system. I'm
certainly an amateur debian package maker, but they seem to work and
usually track matplotlib CVS fairly closely.
JDH
From: John H. <jdh...@ac...> - 2005年10月06日 13:36:49
>>>>> "skip" == skip <sk...@po...> writes:
 skip> I installed the fink version of mpl on my 10.3.9 laptop the
 skip> other day. I've not been able to work around font problems
 skip> and am looking for suggestions. When I run "ipython -pylab"
 skip> (GTKAgg backend) I get this traceback:
 skip> line 456, in createFontDict font =
 skip> ft2font.FT2Font(str(fpath)) RuntimeError: Could not load
 skip> facefile /Library/Fonts/CharcoalCY.dfont;
 skip> Unknown_File_Format
What version of matplotlib are you using. In recent versions we've
tried to me more friendly about catching exceptions, warning, and then
moving on, rather than failing. There are many mac ttf fonts that
fail and I don't know why (what version of freetype are you using?).
I suggest either upgrading to the most recent mpl which should be
tolerant of bad fonts.
If that doesn't work, you might want to look into the font_manager
module, and hack the font finding machinery to just return the mpl
system fonts (eg Vera*). If you search for
 self.ttffiles = findSystemFonts(paths) + findSystemFonts()
 you'll find the spot where the font search list is set and you could
 manually hack this. We could provide an override setting for the
 font manager in rc that says "just use such and such font dirs".
Let me know if any of this helps,
JDH
From: Alan G I. <ai...@am...> - 2005年10月06日 13:16:39
> On 2005年10月06日, Gary Ruben apparently wrote:=20
>> Your example works fine on my Win2k + MiKTeX setup with Matplotlib 0.83=
=20
On Thu, 6 Oct 2005, Alan G Isaac apparently wrote:=20
> You see the \alpha in his example??=20
> Alan Isaac=20
> Using Win2K + MiKTeX + Matplotlib 0.83.2=20
Oops. Too hair trigger on the send button.
Deleting the cache worked.
But why?
I saw the problem the first time I ran his example.
What exactly is being cached?
Thank you,
Alan Isaac
From: Alan G I. <ai...@am...> - 2005年10月06日 13:11:57
On 2005年10月06日, Gary Ruben apparently wrote:=20
> Your example works fine on my Win2k + MiKTeX setup with Matplotlib 0.83=
=20
You see the \alpha in his example??
Alan Isaac
Using Win2K + MiKTeX + Matplotlib 0.83.2
Cheers,
Alan Isaac
From: Alexander B. <ale...@gm...> - 2005年10月06日 12:30:32
On 10/6/05, Alexander Borghgraef <ale...@gm...> wrote=
:
>
> We do have several versions of libpng installed, both of libpng10 and
> libpng12. The file /usr/lib/libpng.so is a
> symbolic link to libpng12.so.0.1.2.8, so I suspect that's the version
> which got linked in.
>
One never ceases to learn :-) I discovered ldd, and when I run it on the
offending file _nc_image.so, I see that
libpng isn't linked into it at all. So there's probably an linking option
set wrong in setupext.py responsable for linking
libpng. I'll try and find it, but if anyone here can save me some time and
tell me, I'd greatly appreciate it.
--
Alex Borghgraef
From: Alexander B. <ale...@gm...> - 2005年10月06日 12:29:31
On 10/6/05, Robert Kern <rk...@uc...> wrote:
>
>
> This is a known problem with Numeric. We have resolved this issue in
> scipy_core, Numeric's nascent replacement.
Good news. I'm new to scipy, I've only just installed the previous version,
so I'll skip beta-testing
for this one I think :-) But I'll most likely switch to it when there's a
new release, it's too interesting
not to.
The message you got is a bit misleading.
Aha, so my clumsy workaround did work!
In fact, the problem is that
> _nc_image.so can't find the function png_set_sBIT() which should be in
> libpng. Check which libpng library actually got linked in.
We do have several versions of libpng installed, both of libpng10 and
libpng12. The file /usr/lib/libpng.so is a
symbolic link to libpng12.so.0.1.2.8, so I suspect that's the version which
got linked in.
--
Alex Borghgraef
From: John H. <jdh...@ac...> - 2005年10月06日 11:52:36
>>>>> "Ken" == Ken McIvor <mc...@ii...> writes:
 Ken> I would have posted the question to matplotlib-devel had I
 Ken> realized that my answer was going to be presented as a
 Ken> credible opinion on a Debian mailing list. Instead, I just
 Ken> called it as I see it: Debian's release cycle is too slow to
 Ken> accommodate the current pace of matplotlib's development.
 Ken> Please let me know if you are aware of any efforts to get
 Ken> matplotlib into the Debian distribution or if you feel I have
 Ken> misrepresented the situation, and I will happily get the word
 Ken> out.
There have been long-standing efforts to get mpl into ddebian -- I
don't think the version number matters much (ipython is in with
0.something) . Go to google groups and search for matplotlib debian
and sort by date. You'll see fairly recent and ongoing discussions on
getting Vittorio's packages fiished. There were minor nits (eg the
src for the docs should be packaged) but I think it's at the stage of
just getting someone to finally push the go button.
JDH
From: Hardip S. <hs...@as...> - 2005年10月06日 09:19:38
Attachments: matplotlib1 matplotlib2
Hi,
 I cannot get matplotlib to install on my Solaris 10 platform, and would
really appreciate some help.
I've installed the latest version of python from a Solaris 10 package:
% /usr/local/bin/python -V
Python 2.4.2
Added various modules including Numarray and numeric:
% /usr/local/bin/python
Python 2.4.2 (#1, Oct 3 2005, 01:55:05)
[GCC 3.3.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import numarray
>>> import Numeric
>>> ^D
Then downloading and unpacking the latest version, matplotlib-0.84
However, it doesn't matter which version of gcc that I use with
setenv CC gcc
where gcc can be either the version that comes with Solaris 10:
% /usr/sfw/bin/gcc -v
gcc version 3.4.3
% setenv CC /usr/sfw/bin/gcc
% /usr/local/bin/python setup.py build
GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
creating build
creating build/lib.solaris-2.10-sun4u-2.4
copying lib/pylab.py -> build/lib.solaris-2.10-sun4u-2.4
creating build/lib.solaris-2.10-sun4u-2.4/matplotlib
copying lib/matplotlib/__init__.py ->
build/lib.solaris-2.10-sun4u-2.4/matplotlib
copying lib/matplotlib/_contour.py ->
build/lib.solaris-2.10-sun4u-2.4/matplotlib
...
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::move(wchar_t*, cons
t wchar_t*, size_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:336: error: `wmemmove' undeclared (first use this function)
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::copy(wchar_t*, cons
t wchar_t*, size_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:340: error: `wmemcpy' undeclared (first use this function)
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h: In static member function `static wchar_t*
std::char_traits<wchar_t>::assign(wchar_t*, si
ze_t, wchar_t)':
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.
h:344: error: `wmemset' undeclared (first use this function)
error: command '/usr/sfw/bin/gcc' failed with exit status 1
(whole message file is the first attachtment)
or my own built version:
/usr/local/bin/gcc -v
gcc version 3.3.2
which matches the version that python itself was built with:
% setenv CC /usr/local/bin/gcc
% /usr/local/bin/python setup.py build
GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
creating build
creating build/lib.solaris-2.10-sun4u-2.4
copying lib/pylab.py -> build/lib.solaris-2.10-sun4u-2.4
creating build/lib.solaris-2.10-sun4u-2.4/matplotlib
...
/usr/include/pthread.h:305: error: parse error before `)' token
/usr/include/pthread.h:306: error: `pthread_barrierattr_t' was not
declared in
 this scope
/usr/include/pthread.h:306: error: parse error before `,' token
/usr/include/pthread.h:308: error: parse error before `*' token
/usr/include/pthread.h:309: error: `pthread_barrier_t' was not declared in
this
 scope
/usr/include/pthread.h:309: error: parse error before `,' token
/usr/include/pthread.h:311: error: `pthread_barrier_t' was not declared in
this
 scope
/usr/include/pthread.h:311: error: parse error before `)' token
/usr/include/pthread.h:312: error: `pthread_barrier_t' was not declared in
this
 scope
/usr/include/pthread.h:312: error: parse error before `)' token
error: command '/usr/local/bin/gcc' failed with exit status 1
(whole message file is the second attachtment)
Any help would really be appreciated as I need matplotlib to install.
cheers,
hardip
-------------------------------------------------------------------------------
Hardip S. Sanghera (hs...@as...)
Institute of Astronomy Phone (office): 44 (0)1223 766663
Madingley Road Fax: 44 (0)1223 337523
Cambridge CB3 0HA
United Kingdom
From: Gary R. <gr...@bi...> - 2005年10月06日 09:11:35
Hi Michael,
Your example works fine on my Win2k + MiKTeX setup with Matplotlib 0.83
Perhaps you should try deleting the contents of the .matplotlib cache 
directory. If this doesn't work, what version of Windows & Matplotlib 
are you running and are you using the MiKTeX distribution?
Gary R.
Michael Gilbert wrote:
> Hello all,
> 
> First of all, I would like to say thank you to the matplotlib developers 
> for implementing a nice hack that enables a free python environment to 
> rival the functionality and power of matlab.
> 
> My question is whether it is possible to use the TeX backend to render 
> fonts under the windows versions of matplotlib? I am interested in 
> mixing standard text with math text as labels on plots. The standard 
> matplotlib font backend can almost do this, but it is not robust, is 
> hard to work with, and the results don't look very professional. On the 
> contrary, the TeX backend is clean and conformant (but it only appears 
> to work on UNIX systems with TeX installed). For example, this code
> 
> import pylab
> pylab.rc('text', usetex=True)
> pylab.xlabel(r'normal text ($\alpha$)')
> pylab.plot(range(0,5))
> pylab.show()
> 
> will not work on the windows version of matplotlib, but produces 
> beatiful labels on the linux version. FYI, the above "rc" command is 
> what requests the TeX backend rather than the default.
> 
> Thanks for your thoughts, ideas, and candor.
> 
> Mike Gilbert
From: Robert K. <rk...@uc...> - 2005年10月06日 08:43:29
Michael Gilbert wrote:
> Hello all,
> 
> First of all, I would like to say thank you to the matplotlib developers
> for implementing a nice hack that enables a free python environment to
> rival the functionality and power of matlab.
> 
> My question is whether it is possible to use the TeX backend to render
> fonts under the windows versions of matplotlib? 
Probably. Do you have TeX installed on your Windows machine?
-- 
Robert Kern
rk...@uc...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Christian K. <ck...@ho...> - 2005年10月06日 08:39:40
Erik Curiel wrote:
> I'm using subplot() to make two plots stacked on top of each other. The
> problem is, the two plots are stacked *immediately* on top of each
That is quite unusual. Are you sure you're using the subplot commands right?
e.g.
subplot(211)
plot([3,2,5,234])
subplot(212)
plot([3,2,5,234])
> other. How do I add vertical space between them, to separate them?
There are differnt approaches. See that posting:
http://sourceforge.net/mailarchive/message.php?msg_id=12666937
Christian
From: Nicholas Y. <N.P...@wa...> - 2005年10月06日 08:37:07
On Wed, 2005年10月05日 at 13:06 -0600, Samuel M. Smith wrote: 
> On 05 Oct, 2005, at 09:25, Nicholas Young wrote:
> 
> >
> > There's a patch from me on the devel list from sometime ago which
> > contains a patch to add an arrowhead marker style to lines. This
> > obviously isn't a solution but on the off chance its useful its here:
> > http://sourceforge.net/mailarchive/message.php?msg_id=12411835
> >
> 
> So to apply the patch I can manually edit lines.py
> or can I just write my own function. I am not familiar with renderer.
Patches are normally applied using software (which does edit lines.py).
If you are using a *nix system this is patch if not I'm afraid I've no
idea.
All this patch does is automate the process of drawing three lines for
an arrow - as this isn't particularly difficult it might be simpler to
produce your own function if you aren't familiar with patches. The
patch is also against an old CVS version of matplotlib - I can produce a
more up to date one if you do want to use it.
> Also your patch mentions a patch.arrow class. Where is that documented?
The classdoc documentation is here:
http://matplotlib.sourceforge.net/matplotlib.patches.html
To use this you create a patch then add it to the current axis using the
axes.add_patch function.
Nick
From: Robert K. <rk...@uc...> - 2005年10月06日 08:11:39
Alexander Borghgraef wrote:
> Hi all,
> 
> I just tried installing matplotlib for the first time, and I ran into
> some problems. At first, matplotlib
> didn't compile because it didn't find the locally installed Numeric
> header files, even though those were in
> the python path. I then looked through some documentation, and found I
> had to edit basedir in
> setupext.py, to refer to the local include dirs. Problem here was that
> these header files are under
> $HOME/local/include/python2.3/, and the libs under
> $HOME/local/lib/python2.3/site-packages/, while
> setupext.py seems to expect to find them under basedir/include and
> basedir/lib, so that didn't fix it.
This is a known problem with Numeric. We have resolved this issue in
scipy_core, Numeric's nascent replacement.
> I then simply copy the header files to matplotlib/src/ so the compiler
> would find them anyway, and
> indeed, matplotlib compiled nicely. Alas, it still doesn't work, when I
> try to import pylab in a python shell,
> I get the following error message:
> 
> The import of the numeric version of the _image module,
> _nc_image, failed. This is is either because numeric was
> unavailable when matplotlib was compiled, because a dependency of
> _nc_image could not be satisfied, or because the build flag for
> this module was turned off in setup.py. If it appears that
> _nc_image was not built, make sure you have a working copy of
> numeric and then re-install matplotlib. Otherwise, the following
> traceback gives more details:
> 
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File
> "/homes/morlet/aborghgr/local/lib/python2.3/site-packages/pylab.py",
> line 1, in ?
> from matplotlib.pylab import *
> File
> "/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/pylab.py",
> line 198, in ?
> from axes import Axes, PolarAxes
> File
> "/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/axes.py",
> line 24, in ?
> import _image
> File
> "/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_image.py",
> line 11, in ?
> from matplotlib._nc_image import *
> ImportError:
> /homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_nc_image.so:
> undefined symbol: png_set_sBIT
> 
> So Numeric still wasn't found. I suspect this means setup.py didn't
> find the libs when building, but
> why didn't it throw an error? And why wasn't Numeric found? It's
> installed locally, but it's in the path,
> I can import Numeric perfectly in a shell. Anyone care to help?
The message you got is a bit misleading. In fact, the problem is that
_nc_image.so can't find the function png_set_sBIT() which should be in
libpng. Check which libpng library actually got linked in.
-- 
Robert Kern
rk...@uc...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Alexander B. <ale...@gm...> - 2005年10月06日 07:51:17
Hi all,
I just tried installing matplotlib for the first time, and I ran into some
problems. At first, matplotlib
didn't compile because it didn't find the locally installed Numeric header
files, even though those were in
the python path. I then looked through some documentation, and found I had
to edit basedir in
setupext.py, to refer to the local include dirs. Problem here was that thes=
e
header files are under
$HOME/local/include/python2.3/, and the libs under
$HOME/local/lib/python2.3/site-packages/, while
setupext.py seems to expect to find them under basedir/include and
basedir/lib, so that didn't fix it.
I then simply copy the header files to matplotlib/src/ so the compiler woul=
d
find them anyway, and
indeed, matplotlib compiled nicely. Alas, it still doesn't work, when I try
to import pylab in a python shell,
I get the following error message:
The import of the numeric version of the _image module,
_nc_image, failed. This is is either because numeric was
unavailable when matplotlib was compiled, because a dependency of
_nc_image could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_nc_image was not built, make sure you have a working copy of
numeric and then re-install matplotlib. Otherwise, the following
traceback gives more details:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/homes/morlet/aborghgr/local/lib/python2.3/site-packages/pylab.py",
line 1, in ?
from matplotlib.pylab import *
File
"/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/pylab.=
py",
line 198, in ?
from axes import Axes, PolarAxes
File
"/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/axes.p=
y",
line 24, in ?
import _image
File
"/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_image=
.py",
line 11, in ?
from matplotlib._nc_image import *
ImportError:
/homes/morlet/aborghgr/local/lib/python2.3/site-packages/matplotlib/_nc_ima=
ge.so:
undefined symbol: png_set_sBIT
So Numeric still wasn't found. I suspect this means setup.py didn't find th=
e
libs when building, but
why didn't it throw an error? And why wasn't Numeric found? It's installed
locally, but it's in the path,
I can import Numeric perfectly in a shell. Anyone care to help?
--
Alex Borghgraef
From: Alan G I. <ai...@am...> - 2005年10月06日 05:58:09
On Wed, 5 Oct 2005, Michael Gilbert apparently wrote: 
> import pylab 
> pylab.rc('text', usetex=True) 
> pylab.xlabel(r'normal text ($\alpha$)') 
> pylab.plot(range(0,5)) 
> pylab.show() 
> will not work on the windows version of matplotlib, 
Not really an answer to your question, but:
it looks like a parse error on the parentheses.
Put them inside the math delimiters and it works.
Cheers,
Alan Isaac
From: Michael G. <mic...@gm...> - 2005年10月06日 03:17:51
Hello all,
First of all, I would like to say thank you to the matplotlib developers fo=
r
implementing a nice hack that enables a free python environment to rival th=
e
functionality and power of matlab.
My question is whether it is possible to use the TeX backend to render font=
s
under the windows versions of matplotlib? I am interested in mixing standar=
d
text with math text as labels on plots. The standard matplotlib font backen=
d
can almost do this, but it is not robust, is hard to work with, and the
results don't look very professional. On the contrary, the TeX backend is
clean and conformant (but it only appears to work on UNIX systems with TeX
installed). For example, this code
import pylab
pylab.rc('text', usetex=3DTrue)
pylab.xlabel(r'normal text ($\alpha$)')
pylab.plot(range(0,5))
pylab.show()
will not work on the windows version of matplotlib, but produces beatiful
labels on the linux version. FYI, the above "rc" command is what requests
the TeX backend rather than the default.
Thanks for your thoughts, ideas, and candor.
Mike Gilbert
From: Ken M. <mc...@ii...> - 2005年10月06日 00:16:59
On Oct 5, 2005, at 4:22 PM, Andrew Straw wrote:
> FYI, here's what they're saying about us on the debian-science list 
> about us right now.
<snip>
> From: Ken McIvor <mc...@ii...>
> To: Carlo Segre <se...@ii...>
> Subject: Re: python matplotlib debian package (fwd)
>
> On Oct 5, 2005, at 12:24 PM, Carlo Segre wrote:
>> do you know the answer to this as you talk with the matplotlib guys.
>
> Once matplotlib hits 1.0 there will be a concerted effort to get it 
> into
> Debian. It's still under such heavy development that it's a bit of a
> moving target right now.
I would have posted the question to matplotlib-devel had I realized 
that my answer was going to be presented as a credible opinion on a 
Debian mailing list. Instead, I just called it as I see it: Debian's 
release cycle is too slow to accommodate the current pace of 
matplotlib's development.
Please let me know if you are aware of any efforts to get matplotlib 
into the Debian distribution or if you feel I have misrepresented the 
situation, and I will happily get the word out.
Ken
From: Erik C. <ec...@ke...> - 2005年10月06日 00:09:17
I'm using subplot() to make two plots stacked on top of each other. The
problem is, the two plots are stacked *immediately* on top of each
other. How do I add vertical space between them, to separate them?
Thanks!
E
From: Andrew S. <str...@as...> - 2005年10月05日 21:22:38
FYI, here's what they're saying about us on the debian-science list 
about us right now.
-------- Original Message --------
Subject: Re: python matplotlib debian package
Resent-Date: Wed, 5 Oct 2005 14:59:45 -0500 (CDT)
Resent-From: deb...@li...
Date: Wed, 5 Oct 2005 14:59:40 -0500 (CDT)
From: Carlo Segre <se...@ii...>
Reply-To: Carlo Segre <se...@ii...>
To: JD Rogers <jdr...@em...>
CC: deb...@li...
References: <20051005155900.GA10519@brancaleone> 
<Pin...@ox...> 
<839...@ma...>
Here is the answer I got.
Date: 2005年10月05日 13:08:45 -0500
From: Ken McIvor <mc...@ii...>
To: Carlo Segre <se...@ii...>
Subject: Re: python matplotlib debian package (fwd)
On Oct 5, 2005, at 12:24 PM, Carlo Segre wrote:
>do you know the answer to this as you talk with the matplotlib guys.
Once matplotlib hits 1.0 there will be a concerted effort to get it into
Debian. It's still under such heavy development that it's a bit of a
moving
target right now.
Ken
On Wed, 5 Oct 2005, JD Rogers wrote:
> Haha, that was fun. Talk about a quick answer(s). :-)
> On a related note, does anyone know the plan for bringing matplotlib
> into debian proper? There are still some sites pointing to the
> mentors.debian.net site which made me think someone was working on
> becoming a maintainer. It took me a few minutes to realize that is an
> unofficial debian site.
>
> On 10/5/05, Carlo Segre <se...@ii...> wrote:
>>
>> Dear Andrea:
>>
>> The packages can be obtained at
>>
>> # Matplotlib binaries
>> deb http://anakonda.altervista.org/debian packages/
>> deb-src http://anakonda.altervista.org/debian sources/
>>
>> Cheers,
>>
>> Carlo
>>
>>
>> On Wed, 5 Oct 2005, Andrea De Michele - wrote:
>>
>>> Hi all,
>>> I'm interesting in python plotting libraries.
>>> matplotlib seems quite interesting, but I'm not able to install it on
>>> my computer.
>>> There is a deb package for this python module?
>>> bye
>>> adm.
>>>
>>
>> --
>> Carlo U. Segre -- Professor of Physics
>> Associate Dean for Special Projects, Graduate College
>> Illinois Institute of Technology
>> Voice: 312.567.3498 Fax: 312.567.3494
>> Car...@ii... http://www.iit.edu/~segre
>>
>>
>> --
>> To UNSUBSCRIBE, email to deb...@li...
>> with a subject of "unsubscribe". Trouble? Contact lis...@li...
>>
>>
>
>
-- 
Carlo U. Segre -- Professor of Physics
Associate Dean for Special Projects, Graduate College
Illinois Institute of Technology
Voice: 312.567.3498 Fax: 312.567.3494
Car...@ii... http://www.iit.edu/~segre
1 message has been excluded from this view by a project administrator.

Showing results of 292

<< < 1 .. 8 9 10 11 12 > >> (Page 10 of 12)
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 によって変換されたページ (->オリジナル) /