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






Showing results of 35

1 2 > >> (Page 1 of 2)
From: John H. <jd...@gm...> - 2008年11月19日 23:38:25
I'm CC-ing the list, because Jeff Whitaker is the basemap developer,
and he will probably want to add it to the basemap examples. Thanks
for the contribution.
On Wed, Nov 19, 2008 at 4:31 PM, Mauro Cavalcanti <mau...@gm...> wrote:
> Dear John,
>
> It worked fine!
>
> Thank you very much for your help. I would like to donate the working
> example source code (attached) to the Matplotlib examples section,
> just in case it may be helpful to someone else.
>
> I intend to provide a more sophisticated exemple soon.
>
> With warmest regards,
>
> 2008年11月19日 John Hunter <jd...@gm...>:
>> On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <mau...@gm...> wrote:
>>
>>> Greetings. Trying to develop a desktop application for interactive
>>> mapping using wxPython and Matplotlib, I have been doing some
>>> experiments with embedding maps generated by the Basemap module into a
>>> wxPython frame.
>>
>> You are almost there. You need to create your own axes instance
>>
>> self.ax = self.figure.add_subplot(111)
>>
>> and then pass this to your basemap
>>
>> map = Basemap(ax=self.ax)
>>
>> after you have issued all your basemap commands, manually force a draw
>>
>> self.figure.canvas.draw()
>>
>> and *do not* import pyplot or call pyplot.show()
>>
>> JDH
>>
>
>
>
> --
> Dr. Mauro J. Cavalcanti
> Ecoinformatics Studio
> P.O. Box 46521, CEP 20551-970
> Rio de Janeiro, RJ, BRASIL
> E-mail: mau...@gm...
> Web: http://studio.infobio.net
> Linux Registered User #473524 * Ubuntu User #22717
> "Life is complex. It consists of real and imaginary parts."
>
From: John H. <jd...@gm...> - 2008年11月19日 22:21:55
On Wed, Nov 19, 2008 at 8:56 AM, Gregory Desvignes
<Gre...@cn...> wrote:
>
> Hi all,
>
> I'm using matplotlib inside the backend_gtkagg with the scatter function
> to draw a simple graph with 20000 to 40000 points. The points may have
> only 2 differents sizes and 4 differents color depending on some criteria
> and should be 'clickable'.
>
> The problem is that the plot rendering is very slow when it deals with
> ~10000 points, especially if we compare it with the rendering of the plot
> function using simple points (as the "data_browser.py" example)
>
> Does anybody knows if there is a way to make things going a little
> bit faster?
"plot" with markers is *much* faster than scatter. If you have only a
few different sizes and a few different colors, if you issue several
plot commands with one or more marker symbols
 plot(x1, y1, 'o', ms=10, color='red')
 plot(x2 y2, 's', ms=20, color='green')
 plot(x3, y3, '+', ms=8, color='blue')
It might be up to an order of magnitude faster. And the individual
points will be selectable using the pick events, as described in
 http://matplotlib.sourceforge.net/users/event_handling.html
Hope this helps,
JDH
From: John H. <jd...@gm...> - 2008年11月19日 22:19:02
On Wed, Nov 19, 2008 at 3:56 AM, domenico09 <dom...@li...> wrote:
>
> I got the same problem on my portable(windowx XP) but not on my desk
> top(windows XP) !
> I reinstalled python, numpy and matplotlib either from internet and from my
> desk top (where things works well) but I got the same problem!
> thanks for any sugegstion
Have you tried the enthought python distribution or python xy? Both
are single click installers that come with python, numpy, ipython,
matplotlib and more.
 http://www.enthought.com/products/epd.php
 http://www.pythonxy.com/foreword.php
JDH
From: John H. <jd...@gm...> - 2008年11月19日 22:13:23
On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <mau...@gm...> wrote:
> Greetings. Trying to develop a desktop application for interactive
> mapping using wxPython and Matplotlib, I have been doing some
> experiments with embedding maps generated by the Basemap module into a
> wxPython frame.
You are almost there. You need to create your own axes instance
 self.ax = self.figure.add_subplot(111)
and then pass this to your basemap
 map = Basemap(ax=self.ax)
after you have issued all your basemap commands, manually force a draw
 self.figure.canvas.draw()
and *do not* import pyplot or call pyplot.show()
JDH
From: John H. <jd...@gm...> - 2008年11月19日 22:01:39
On Wed, Nov 19, 2008 at 3:06 PM, Katie Thomas <th...@mi...> wrote:
> Oh, I figured it out. It's not there. How do I reinstall the X11 dev
I have some notes on how to install on OS X that covers this -- see
 http://ipython.scipy.org/moin/Py4Science/InstallationOSX
The explanation on the xcode dev tools is brief, and reads::
 install gcc and other developer tools
 Install XCode developer tools from the Leopard install CD under
optional packages. Verify the install -- check for a working gcc
 > gcc --version
 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
 If you don't have the cd (or not a very recent one), you can get
XCodetools from the Apple Developer Connection:
 http://developer.apple.com/tools/download/
 you may have to join (for free) and login.
Hope this helps,
JDH
From: John H. <jd...@gm...> - 2008年11月19日 21:57:26
On Wed, Nov 19, 2008 at 1:22 PM, Goyo <goy...@gm...> wrote:
> Make sure yu're using a backend with a user interface.
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
Also, you can get more verbose input at runtime with the --verbose-helpful flag:
> python histogram.py --verbose-helpful
This will tell you what backend you are running, where your
matplotlibrc file is (which controls the backend), etc. See also
 http://matplotlib.sourceforge.net/faq/installing_faq.html
JDH
From: Ron B. <bre...@gm...> - 2008年11月19日 21:55:10
Hello,
Does anyone know where I can find some histogram examples. The ones with
the documentation are not as self-explanatory as I would have liked.
I'm not a mathematician and I am struggling to understand the math behind
the magic.
Can anyone help?
Thanks,
Ron
From: Joshua L. <dis...@gm...> - 2008年11月19日 21:15:20
Note: If you don't have X11 installed at all (not just the dev tools,
but not even X11 itself, which would mean you're running something
pre_leopard I assume), you can install this as one of the optional
components of your OS X install disc.
Josh
On Wed, Nov 19, 2008 at 1:11 PM, Joshua Lippai <dis...@gm...> wrote:
> Either way, the problem is that matplotlib is trying to access a file
> somewhere that doesn't exist (and needs to exist). Make sure you have
> X11 installed on the computer (simple spotlight search should turn up
> the app frontend), and then install the X11 package from Apple's Xcode
> developer tools (available on the install discs for the operating
> system or online from developer.apple.com in the downloads section of
> the members site with a free ADC account. If you end up downloading
> the tools, keep in mind that Xcode Developer Tools 2.5 are the latest
> working version for OS X 10.4, and 3.1.1 is the latest working version
> for 10.5 (since it's a large download). Once you're sure you have the
> X11 tools installed, remove matplotlib and do a clean install.
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote:
>> Could you try just typing "cd /usr", then "ls" and checking what
>> folders are in there? Is there an X11 folder in there at all?
>>
>> Josh
>>
>> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote:
>>> So I have downloaded matplotlib I'm sure, but when I type "cd
>>> /usr/X11R6/lib" into the terminal is says "no such file or directory."
>>> Do you know what this means?
>>> Thanks for all your help,
>>> Katie
>>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>>>
>>> The sensitive root folders (like /usr) are hidden from the Finder so
>>> that it's hard for someone that doesn't know about them to
>>> accidentally delete/move something sensitive that's supposed to stay
>>> put. You can get around this easily either with Terminal or Finder
>>> itself.
>>> If you're comfortable with Terminal:
>>> -Open Terminal
>>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
>>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
>>> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
>>> If it spits back nothing, the file is missing.
>>> If you're not comfortable with Terminal:
>>> -Open a Finder window
>>> -From the menubar, click Go -> Go to Folder...
>>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
>>> -Look in the list of files yourself to see if the file
>>> libfreeype.6.dylib is there.
>>> Also, for future reference, when getting help on a mailing list, make
>>> sure to hit "Reply-all" instead of just "Reply" so that the
>>> conversation stays on the mailing list and doesn't turn into a private
>>> email correspondence between just you and one other person.
>>> Josh
>>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote:
>>>
>>> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I
>>> searched for it, but I couldn't find it.
>>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>>> It appears that matplotlib is having trouble finding the freetype
>>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>>> check that folder to see if the dylib is there. If it isn't, reinstall
>>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>>> opening, so I'd recommend removing matplotlib from your
>>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
>>> folder and doing a fresh build/install.
>>> Josh
>>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote:
>>> Hi, does anybody know why I'm getting this error importing pylab?
>>> Thanks in advance!
>>> Traceback (most recent call last):
>>> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
>>> from pylab import *
>>> File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
>>> line 1, in <module>
>>> from matplotlib.pylab import *
>>> File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
>>> line 208, in <module>
>>> from matplotlib import mpl # pulls in most modules
>>> File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
>>> line 3, in <module>
>>> from matplotlib import axis
>>> File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
>>> line 20, in <module>
>>> from font_manager import FontProperties
>>> File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
>>> line 40, in <module>
>>> from matplotlib import ft2font
>>> ImportError:
>>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
>>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>>> Referenced from:
>>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>>> Reason: image not found
>>> --
>>> Yang Zhang
>>> http://www.mit.edu/~y_z/
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>> --
>>> Katie Thomas
>>> Department of Biology
>>> Massachusetts Institute of Technology | Class of 2010
>>>
>>>
>>>
>>>
>>> --
>>> Katie Thomas
>>> Department of Biology
>>> Massachusetts Institute of Technology | Class of 2010
>>>
>>>
>>>
>>>
>>
>
From: Joshua L. <dis...@gm...> - 2008年11月19日 21:11:08
Either way, the problem is that matplotlib is trying to access a file
somewhere that doesn't exist (and needs to exist). Make sure you have
X11 installed on the computer (simple spotlight search should turn up
the app frontend), and then install the X11 package from Apple's Xcode
developer tools (available on the install discs for the operating
system or online from developer.apple.com in the downloads section of
the members site with a free ADC account. If you end up downloading
the tools, keep in mind that Xcode Developer Tools 2.5 are the latest
working version for OS X 10.4, and 3.1.1 is the latest working version
for 10.5 (since it's a large download). Once you're sure you have the
X11 tools installed, remove matplotlib and do a clean install.
Josh
On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote:
> Could you try just typing "cd /usr", then "ls" and checking what
> folders are in there? Is there an X11 folder in there at all?
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote:
>> So I have downloaded matplotlib I'm sure, but when I type "cd
>> /usr/X11R6/lib" into the terminal is says "no such file or directory."
>> Do you know what this means?
>> Thanks for all your help,
>> Katie
>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>>
>> The sensitive root folders (like /usr) are hidden from the Finder so
>> that it's hard for someone that doesn't know about them to
>> accidentally delete/move something sensitive that's supposed to stay
>> put. You can get around this easily either with Terminal or Finder
>> itself.
>> If you're comfortable with Terminal:
>> -Open Terminal
>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
>> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
>> If it spits back nothing, the file is missing.
>> If you're not comfortable with Terminal:
>> -Open a Finder window
>> -From the menubar, click Go -> Go to Folder...
>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
>> -Look in the list of files yourself to see if the file
>> libfreeype.6.dylib is there.
>> Also, for future reference, when getting help on a mailing list, make
>> sure to hit "Reply-all" instead of just "Reply" so that the
>> conversation stays on the mailing list and doesn't turn into a private
>> email correspondence between just you and one other person.
>> Josh
>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote:
>>
>> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I
>> searched for it, but I couldn't find it.
>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>> It appears that matplotlib is having trouble finding the freetype
>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>> check that folder to see if the dylib is there. If it isn't, reinstall
>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>> opening, so I'd recommend removing matplotlib from your
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
>> folder and doing a fresh build/install.
>> Josh
>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote:
>> Hi, does anybody know why I'm getting this error importing pylab?
>> Thanks in advance!
>> Traceback (most recent call last):
>> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
>> from pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
>> line 1, in <module>
>> from matplotlib.pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
>> line 208, in <module>
>> from matplotlib import mpl # pulls in most modules
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
>> line 3, in <module>
>> from matplotlib import axis
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
>> line 20, in <module>
>> from font_manager import FontProperties
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
>> line 40, in <module>
>> from matplotlib import ft2font
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>> Referenced from:
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>> Reason: image not found
>> --
>> Yang Zhang
>> http://www.mit.edu/~y_z/
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> --
>> Katie Thomas
>> Department of Biology
>> Massachusetts Institute of Technology | Class of 2010
>>
>>
>>
>>
>> --
>> Katie Thomas
>> Department of Biology
>> Massachusetts Institute of Technology | Class of 2010
>>
>>
>>
>>
>
From: Katie T. <th...@MI...> - 2008年11月19日 21:06:40
Oh, I figured it out. It's not there. How do I reinstall the X11 
dev tools?
On Nov 19, 2008, at 3:57 PM, Joshua Lippai wrote:
> Could you try just typing "cd /usr", then "ls" and checking what
> folders are in there? Is there an X11 folder in there at all?
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> 
> wrote:
>> So I have downloaded matplotlib I'm sure, but when I type "cd
>> /usr/X11R6/lib" into the terminal is says "no such file or 
>> directory."
>> Do you know what this means?
>> Thanks for all your help,
>> Katie
>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>>
>> The sensitive root folders (like /usr) are hidden from the Finder so
>> that it's hard for someone that doesn't know about them to
>> accidentally delete/move something sensitive that's supposed to stay
>> put. You can get around this easily either with Terminal or Finder
>> itself.
>> If you're comfortable with Terminal:
>> -Open Terminal
>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
>> -Look at the output. It should spit back "libfreetype.6.dylib" at 
>> you.
>> If it spits back nothing, the file is missing.
>> If you're not comfortable with Terminal:
>> -Open a Finder window
>> -From the menubar, click Go -> Go to Folder...
>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
>> -Look in the list of files yourself to see if the file
>> libfreeype.6.dylib is there.
>> Also, for future reference, when getting help on a mailing list, make
>> sure to hit "Reply-all" instead of just "Reply" so that the
>> conversation stays on the mailing list and doesn't turn into a 
>> private
>> email correspondence between just you and one other person.
>> Josh
>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> 
>> wrote:
>>
>> Thanks! I don't know how to find the /usr/X11R6/lib folder 
>> though. I
>> searched for it, but I couldn't find it.
>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>> It appears that matplotlib is having trouble finding the freetype
>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>> check that folder to see if the dylib is there. If it isn't, 
>> reinstall
>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>> opening, so I'd recommend removing matplotlib from your
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages
>> folder and doing a fresh build/install.
>> Josh
>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang 
>> <yan...@gm...> wrote:
>> Hi, does anybody know why I'm getting this error importing pylab?
>> Thanks in advance!
>> Traceback (most recent call last):
>> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
>> from pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/pylab.py",
>> line 1, in <module>
>> from matplotlib.pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/pylab.py",
>> line 208, in <module>
>> from matplotlib import mpl # pulls in most modules
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/mpl.py",
>> line 3, in <module>
>> from matplotlib import axis
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/axis.py",
>> line 20, in <module>
>> from font_manager import FontProperties
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/font_manager.py",
>> line 40, in <module>
>> from matplotlib import ft2font
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/matplotlib/ft2font.so,
>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>> Referenced from:
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/ft2font.so
>> Reason: image not found
>> --
>> Yang Zhang
>> http://www.mit.edu/~y_z/
>> --------------------------------------------------------------------- 
>> ----
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win 
>> great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in 
>> the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> --
>> Katie Thomas
>> Department of Biology
>> Massachusetts Institute of Technology | Class of 2010
>>
>>
>>
>>
>> --
>> Katie Thomas
>> Department of Biology
>> Massachusetts Institute of Technology | Class of 2010
>>
>>
>>
>>
--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010
From: Christopher B. <Chr...@no...> - 2008年11月19日 21:05:23
Joshua Lippai wrote:
> If you're not comfortable with Terminal:
> 
> -Open a Finder window
> -From the menubar, click Go -> Go to Folder...
You can also re-set finder to show you the hidden dirs -- I always have 
mine set up that way. The easiest way is to use a utility called 
"TinkerTool", but you can also change the finder setting with the 
command line:
http://lifehacker.com/software/command-line/show-hidden-files-in-finder-188892.php
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Joshua L. <dis...@gm...> - 2008年11月19日 20:57:49
Could you try just typing "cd /usr", then "ls" and checking what
folders are in there? Is there an X11 folder in there at all?
Josh
On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote:
> So I have downloaded matplotlib I'm sure, but when I type "cd
> /usr/X11R6/lib" into the terminal is says "no such file or directory."
> Do you know what this means?
> Thanks for all your help,
> Katie
> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>
> The sensitive root folders (like /usr) are hidden from the Finder so
> that it's hard for someone that doesn't know about them to
> accidentally delete/move something sensitive that's supposed to stay
> put. You can get around this easily either with Terminal or Finder
> itself.
> If you're comfortable with Terminal:
> -Open Terminal
> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
> If it spits back nothing, the file is missing.
> If you're not comfortable with Terminal:
> -Open a Finder window
> -From the menubar, click Go -> Go to Folder...
> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
> -Look in the list of files yourself to see if the file
> libfreeype.6.dylib is there.
> Also, for future reference, when getting help on a mailing list, make
> sure to hit "Reply-all" instead of just "Reply" so that the
> conversation stays on the mailing list and doesn't turn into a private
> email correspondence between just you and one other person.
> Josh
> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote:
>
> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I
> searched for it, but I couldn't find it.
> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
> It appears that matplotlib is having trouble finding the freetype
> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
> check that folder to see if the dylib is there. If it isn't, reinstall
> the X11 dev tools. If it is, something is wrong with the dynamic lib
> opening, so I'd recommend removing matplotlib from your
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> folder and doing a fresh build/install.
> Josh
> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote:
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
> Traceback (most recent call last):
> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
> from pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in <module>
> from matplotlib.pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in <module>
> from matplotlib import mpl # pulls in most modules
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in <module>
> from matplotlib import axis
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in <module>
> from font_manager import FontProperties
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in <module>
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
> Reason: image not found
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>
From: Katie T. <th...@MI...> - 2008年11月19日 20:53:50
So I have downloaded matplotlib I'm sure, but when I type "cd /usr/ 
X11R6/lib" into the terminal is says "no such file or directory."
Do you know what this means?
Thanks for all your help,
Katie
On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
> The sensitive root folders (like /usr) are hidden from the Finder so
> that it's hard for someone that doesn't know about them to
> accidentally delete/move something sensitive that's supposed to stay
> put. You can get around this easily either with Terminal or Finder
> itself.
>
> If you're comfortable with Terminal:
>
> -Open Terminal
> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
> If it spits back nothing, the file is missing.
>
> If you're not comfortable with Terminal:
>
> -Open a Finder window
> -From the menubar, click Go -> Go to Folder...
> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
> -Look in the list of files yourself to see if the file
> libfreeype.6.dylib is there.
>
> Also, for future reference, when getting help on a mailing list, make
> sure to hit "Reply-all" instead of just "Reply" so that the
> conversation stays on the mailing list and doesn't turn into a private
> email correspondence between just you and one other person.
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> 
> wrote:
>> Thanks! I don't know how to find the /usr/X11R6/lib folder 
>> though. I
>> searched for it, but I couldn't find it.
>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>>
>> It appears that matplotlib is having trouble finding the freetype
>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>> check that folder to see if the dylib is there. If it isn't, 
>> reinstall
>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>> opening, so I'd recommend removing matplotlib from your
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages
>> folder and doing a fresh build/install.
>> Josh
>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang 
>> <yan...@gm...> wrote:
>>
>> Hi, does anybody know why I'm getting this error importing pylab?
>> Thanks in advance!
>> Traceback (most recent call last):
>> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
>> from pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/pylab.py",
>> line 1, in <module>
>> from matplotlib.pylab import *
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/pylab.py",
>> line 208, in <module>
>> from matplotlib import mpl # pulls in most modules
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/mpl.py",
>> line 3, in <module>
>> from matplotlib import axis
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/axis.py",
>> line 20, in <module>
>> from font_manager import FontProperties
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/font_manager.py",
>> line 40, in <module>
>> from matplotlib import ft2font
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/matplotlib/ft2font.so,
>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>> Referenced from:
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/matplotlib/ft2font.so
>> Reason: image not found
>> --
>> Yang Zhang
>> http://www.mit.edu/~y_z/
>> --------------------------------------------------------------------- 
>> ----
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win 
>> great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in 
>> the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>> --
>> Katie Thomas
>> Department of Biology
>> Massachusetts Institute of Technology | Class of 2010
>>
>>
>>
>>
--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010
From: Joshua L. <dis...@gm...> - 2008年11月19日 20:49:24
The sensitive root folders (like /usr) are hidden from the Finder so
that it's hard for someone that doesn't know about them to
accidentally delete/move something sensitive that's supposed to stay
put. You can get around this easily either with Terminal or Finder
itself.
If you're comfortable with Terminal:
-Open Terminal
-Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
-Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
-Look at the output. It should spit back "libfreetype.6.dylib" at you.
If it spits back nothing, the file is missing.
If you're not comfortable with Terminal:
-Open a Finder window
-From the menubar, click Go -> Go to Folder...
-Type "/usr/X11R6/lib" (without quotes) and push ENTER
-Look in the list of files yourself to see if the file
libfreeype.6.dylib is there.
Also, for future reference, when getting help on a mailing list, make
sure to hit "Reply-all" instead of just "Reply" so that the
conversation stays on the mailing list and doesn't turn into a private
email correspondence between just you and one other person.
Josh
On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote:
> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I
> searched for it, but I couldn't find it.
> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>
> It appears that matplotlib is having trouble finding the freetype
> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
> check that folder to see if the dylib is there. If it isn't, reinstall
> the X11 dev tools. If it is, something is wrong with the dynamic lib
> opening, so I'd recommend removing matplotlib from your
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> folder and doing a fresh build/install.
> Josh
> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote:
>
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
> Traceback (most recent call last):
> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
> from pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in <module>
> from matplotlib.pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in <module>
> from matplotlib import mpl # pulls in most modules
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in <module>
> from matplotlib import axis
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in <module>
> from font_manager import FontProperties
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in <module>
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
> Reason: image not found
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>
From: Christopher B. <Chr...@no...> - 2008年11月19日 20:36:39
Jeff Mangum wrote:
>> BUILDING MATPLOTLIB
>> matplotlib: 0.98.3
>> python: 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC
>> 4.0.1 (Apple Inc. build 5465)]
>> platform: darwin
You'll need to get easy_install to use the right Python anyway, but do 
you need to build MPL? can you use the binary:
 	matplotlib-0.98.3-py2.5-macosx-10.3.egg
(note that that is OS-X 10.3 and above)
you may have to re-name it to:
matplotlib-0.98.3-py2.5.egg
to get easy_install to recognize it.
-CHB
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Mauro C. <mau...@gm...> - 2008年11月19日 20:32:02
Dear ALL,
Greetings. Trying to develop a desktop application for interactive
mapping using wxPython and Matplotlib, I have been doing some
experiments with embedding maps generated by the Basemap module into a
wxPython frame.
Although there are many nice exemples of using Matplotlib graphs in
wxWpython and other GUI frontends, I could not find any examples of
doing this with the Basemap module.
As a quick start, I put together the the code below (adapted from one
of the examples available in the Matplotlib website):
--
#!/usr/bin/env python
import matplotlib
import matplotlib.pyplot
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.figure import Figure
from mpl_toolkits.basemap import Basemap
from wx import *
class CanvasFrame(Frame):
	def __init__(self):
		Frame.__init__(self,None,-1,
						'CanvasFrame',size=(550,350))
		self.SetBackgroundColour(NamedColor("WHITE"))
		self.figure = Figure()
		
		self.canvas = FigureCanvas(self, -1, self.figure)
		self.sizer = BoxSizer(VERTICAL)
		self.sizer.Add(self.canvas, 1, LEFT | TOP | GROW)
		self.SetSizer(self.sizer)
		self.Fit()
		self.add_toolbar() # comment this out for no toolbar
		
 # This functions plots the Basemap
		self.plot_map()
		
	def add_toolbar(self):
		self.toolbar = NavigationToolbar2Wx(self.canvas)
		self.toolbar.Realize()
		if Platform == '__WXMAC__':
			# Mac platform (OSX 10.3, MacPython) does not seem to cope with
			# having a toolbar in a sizer. This work-around gets the buttons
			# back, but at the expense of having the toolbar at the top
			self.SetToolBar(self.toolbar)
		else:
			# On Windows platform, default window size is incorrect, so set
			# toolbar width to figure width.
			tw, th = self.toolbar.GetSizeTuple()
			fw, fh = self.canvas.GetSizeTuple()
			# By adding toolbar in sizer, we are able to put it at the bottom
			# of the frame - so appearance is closer to GTK version.
			# As noted above, doesn't work for Mac.
			self.toolbar.SetSize(Size(fw, th))
			self.sizer.Add(self.toolbar, 0, LEFT | EXPAND)
		# update the axes menu on the toolbar
		self.toolbar.update()
		
	def plot_map(self):
		map = Basemap()
		map.drawcoastlines()
		map.drawcountries()
		map.drawmapboundary()
		map.fillcontinents(color='lime', lake_color='aqua')
		map.drawmapboundary(fill_color='aqua')
		matplotlib.pyplot.show()
class App(App):
	def OnInit(self):
		'Create the main window and insert the custom frame'
		frame = CanvasFrame()
		frame.Show(True)
		return True
app = App(0)
app.MainLoop()
--
Well, the above code works, but notice that after the Basemap plot is
displayed on a usual plotting window, *another*, blank, plotting
window appears! Can anyone figure out how to avoid that?
Another problem is that the instruction
"self.canvas.print_figure('test.png',dpi=100)", if used in place of
matplotlib.pyplot.show() method, has not effect and no figure is
written to disk.
Also, a call to method "self.canvas.draw()" has not effect, either.
Any hints?
Thanks in advance for any assistance you can provide.
With best regards,
-- 
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: mau...@gm...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."
From: Joshua L. <dis...@gm...> - 2008年11月19日 20:10:32
It appears that matplotlib is having trouble finding the freetype
dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
check that folder to see if the dylib is there. If it isn't, reinstall
the X11 dev tools. If it is, something is wrong with the dynamic lib
opening, so I'd recommend removing matplotlib from your
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
folder and doing a fresh build/install.
Josh
On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote:
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
>
> Traceback (most recent call last):
> File "/Users/Kates/Documents/ps11.py", line 9, in <module>
> from pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in <module>
> from matplotlib.pylab import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in <module>
> from matplotlib import mpl # pulls in most modules
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in <module>
> from matplotlib import axis
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in <module>
> from font_manager import FontProperties
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in <module>
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
> Reason: image not found
>
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Goyo <goy...@gm...> - 2008年11月19日 19:22:30
Make sure yu're using a backend with a user interface.
http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
El mié, 19-11-2008 a las 10:49 -0500, Ron Brennan escribió:
> Hello,
> 
> I am completely new to Matplotlib. I can't seem to get my script (a
> copy and paste from a Histogram example) to generate a graph. When I
> run my script, the command prompt returns.
> 
> Is there something I am missing?
> 
> # 
> # histogram.py 
> # 
> import numpy as np
> import matplotlib.mlab as mlab
> import matplotlib.pyplot as plt
> 
> mu, sigma = 100, 15
> x = mu + sigma*np.random.randn(10000)
> 
> # the histogram of the data
> n, bins, patches = plt.hist(x, 50, normed=1, facecolor='green',
> alpha=0.75)
> 
> # add a 'best fit' line
> y = mlab.normpdf( bins, mu, sigma)
> l = plt.plot(bins, y, 'r--', linewidth=1)
> 
> plt.xlabel('Smarts')
> plt.ylabel('Probability')
> plt.title(r'$\mathrm{Histogram\ of\ IQ:}\ \mu=100,\ \sigma=15$')
> plt.axis([40, 160, 0, 0.03])
> plt.grid(True)
> 
> plt.show()
> 
> Calling with:
> python histogram.py
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Eric F. <ef...@ha...> - 2008年11月19日 17:57:26
wafels wrote:
> Hello,
> 
> I can confirm and extend this bug report. The axvline also moves to the
> wrong position on resizing the matplotlib display window (Mac OS X 10.5.5,
> Python 2.5.1, Matplotlib 0.98.3).
> 
> Thanks
It looks like the transform for the line made by axvline is not getting 
updated when view limits change. The problem is found in svn, after the 
changes I made to axvline, as well as in 0.98.3. I can't track it down 
right now.
Eric
> 
> 
> 
> João Luís Silva-2 wrote:
>> Hi,
>>
>> A vertical line on the x axis of a semilogy plot will be in the correct 
>> position, but when saved with the save button of the toolbar it will be 
>> placed in an incorrect position, although savefig will do the right 
>> thing. Furthermore, zooming will not move the axvline correctly.
>>
>> Matplotlib version: 0.98.3
>>
>> Example script:
>> -----------------------------------------
>>
>> import matplotlib.pyplot as pl
>> import numpy as np
>>
>> x = np.linspace(0.0,1.0,100)
>>
>> pl.semilogy(x,x**2)
>> pl.axvline(x=0.5,ls='--',color='k')
>> pl.show()
>> #pl.savefig("saved_image.png")
>> -----------------------------------------
>>
>> image.png was saved using the toolbar, saved_image.png using savefig.
>>
>> Regards,
>> João Silva
>>
>> 
>> 
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> 
From: Frank L. <df...@se...> - 2008年11月19日 17:55:37
On Wed, Nov 19, 2008 at 4:52 AM, <dom...@li...> wrote:
>
> Frank Lagor wrote:
>>
>> Hi,
>>
>> I am sorry to bug you all with an installation problem, but I need
>> some additional help to get this figured out.
>>
>> I previously had a matplotlib installed and working fine, but it was
>> necessary for me to redo some other installations like numpy when I
>> needed a complete lapack library. This also led to me installing
>> another version of g77, because numpy needed a specific library that
>> was only provide by the g77 version of fortran for some reason.
>> Anyways, numpy works great but I went back to install matplotlib and I
>> ran into trouble. After the installation process, if I try to import
>> matplotlib.pylab I get the following errors:
>>
>> from matplotlib._path import affine_transform
>> ImportError: /ronaldo/pkg/dfranci/gcc-g77-3.4.6/lib64/libgcc_s.so.1:
>> version `GCC_4.2.0' not found (required by /usr/lib64/libstdc++.so.6)
>>
>> Is this a problem that I can fix in the matplotlib installation or do
>> I need to go back up to the numpy installation?
>>
>> I should note that I do not have gcc-4.2.0 on my system.
>>
>> Thanks in advance,
>> Frank
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> Quoted from:
> http://www.nabble.com/Installation-problem-tp20427671p20427671.html
>
> I have the same problem on my portable (windows XP) but everithing works on my desk top!!
> Do you have received any answer?
> Thanks
> Domenico
>
>
>
Hi Domenico,
Yes, the problem was resolved and it all works great now. I can't
tell you exactly what fixed it because I am no an expert on library
files, compiling stuff, etc. However, here is what I thought: I
thought that the libstdc++.so was not finding the correct library
files for the compiler or that there was a difference between the
version of gcc compiler used to make the libstdc++.so file and the gcc
compiler that I used to build other python related dependencies like
numpy. So here is what I did: (I'm sorry but I do not know how to do
this in wondows. I only know what I did linux)
1) Installed a brand new version on the gcc suite of compilers on my
computer. (I took a long time to do this, but I wanted to make sure
that all the library files and the compilers that I used matched up
and worked well.) I seem to recall that there was one flag which was
important: I think it was --with-gnu-ld, which tells gcc to use the
gnu ld program for linking library files. Please also be sure to set
the LD_LIBRARY_PATH variable to find all the appropriate library
files.
2) I rebuilt LAPACK and ATLAS (because I was having trouble with them
too and I knew that numpy depended on the lapack routines.
3) I rebuilt numpy.
4) I installed matplotlib.
I know this probably seems like overkill, but it is what I had to do
to get my machine working.
Sorry I can't be of more help, these issues are pretty specific to the
individual computer.
Best of luck,
Frank
From: Yang Z. <yan...@gm...> - 2008年11月19日 17:25:29
Hi, does anybody know why I'm getting this error importing pylab? 
Thanks in advance!
Traceback (most recent call last):
 File "/Users/Kates/Documents/ps11.py", line 9, in <module>
 from pylab import *
 File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", 
line 1, in <module>
 from matplotlib.pylab import *
 File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", 
line 208, in <module>
 from matplotlib import mpl # pulls in most modules
 File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", 
line 3, in <module>
 from matplotlib import axis
 File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", 
line 20, in <module>
 from font_manager import FontProperties
 File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", 
line 40, in <module>
 from matplotlib import ft2font
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, 
2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
 Referenced from: 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
 Reason: image not found
-- 
Yang Zhang
http://www.mit.edu/~y_z/
From: Jeff W. <js...@fa...> - 2008年11月19日 15:52:33
Hrafnkell Pálsson wrote:
>
> 
>> This will turn off the rendering of both the background rectangle as
>> well as all the ticks and their associated labels, ticklines and
>> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is
>>
>> 
>
> Ok, I tested your example and see what you mean.
> But if I understood you correctly this won't allow me to retain the
> watermark and the dots I've used for marking cities.
> It would be nice if I could retain the whole background, if it wouldn't
> matter whether I retrieved the background or actually plotted it.
> But even just avoiding plotting the coastline every time would save a lot of
> time.
>
>
>
> 
>> Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is 
>>
>> 
>
> Could you, Jeff, give me a nudge in the right direction? I've read through
> the basemap documentation but didn't notice anything that might help.
>
> Hrafnkell
> 
Hrafnkell: You can go by the example John gave, using figure and axes instance methods. Basemap just draws stuff on the current figure and axes instances.
Are you recreating the Basemap instance every time you generate a plot? If the projection isn't changing, you can save a lot of overhead by re-using a single Basemap instance. You can even pickle it to a file for use in another script.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Ron B. <bre...@gm...> - 2008年11月19日 15:49:42
Hello,
I am completely new to Matplotlib. I can't seem to get my script (a copy
and paste from a Histogram example) to generate a graph. When I run my
script, the command prompt returns.
Is there something I am missing?
#
# histogram.py
#
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
mu, sigma = 100, 15
x = mu + sigma*np.random.randn(10000)
# the histogram of the data
n, bins, patches = plt.hist(x, 50, normed=1, facecolor='green', alpha=0.75)
# add a 'best fit' line
y = mlab.normpdf( bins, mu, sigma)
l = plt.plot(bins, y, 'r--', linewidth=1)
plt.xlabel('Smarts')
plt.ylabel('Probability')
plt.title(r'$\mathrm{Histogram\ of\ IQ:}\ \mu=100,\ \sigma=15$')
plt.axis([40, 160, 0, 0.03])
plt.grid(True)
plt.show()
Calling with:
python histogram.py
From: Hrafnkell P. <hr...@hi...> - 2008年11月19日 15:46:32
> This will turn off the rendering of both the background rectangle as
> well as all the ticks and their associated labels, ticklines and
> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what
> the equivalent is
> 
Ok, I tested your example and see what you mean.
But if I understood you correctly this won't allow me to retain the
watermark and the dots I've used for marking cities.
It would be nice if I could retain the whole background, if it wouldn't
matter whether I retrieved the background or actually plotted it.
But even just avoiding plotting the coastline every time would save a lot of
time.
> Perhaps Jeff can advise you vis-a-vis the basemap api what
> the equivalent is 
> 
Could you, Jeff, give me a nudge in the right direction? I've read through
the basemap documentation but didn't notice anything that might help.
Hrafnkell
-- 
View this message in context: http://www.nabble.com/Save-a-plot-background-tp20519596p20582574.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: wafels <jac...@gm...> - 2008年11月19日 15:32:30
Hello,
I can confirm and extend this bug report. The axvline also moves to the
wrong position on resizing the matplotlib display window (Mac OS X 10.5.5,
Python 2.5.1, Matplotlib 0.98.3).
Thanks
João Luís Silva-2 wrote:
> 
> Hi,
> 
> A vertical line on the x axis of a semilogy plot will be in the correct 
> position, but when saved with the save button of the toolbar it will be 
> placed in an incorrect position, although savefig will do the right 
> thing. Furthermore, zooming will not move the axvline correctly.
> 
> Matplotlib version: 0.98.3
> 
> Example script:
> -----------------------------------------
> 
> import matplotlib.pyplot as pl
> import numpy as np
> 
> x = np.linspace(0.0,1.0,100)
> 
> pl.semilogy(x,x**2)
> pl.axvline(x=0.5,ls='--',color='k')
> pl.show()
> #pl.savefig("saved_image.png")
> -----------------------------------------
> 
> image.png was saved using the toolbar, saved_image.png using savefig.
> 
> Regards,
> João Silva
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://www.nabble.com/Bug-saving-semilogy-plots-with-a-axvline-tp20565983p20582273.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Showing results of 35

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