Re: [Matplotlib-users] Backtrace with CocoaAgg backend

2009-01-21 Thread Adam Mercer
On Wed, Jan 21, 2009 at 21:09, John Hunter wrote: > This looks like a simple bug in which FigureCanvasBase is not > imported. Try replacing line 31 in > matplotlib/backends/backend_cocoaagg.py with this:: > >from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase > > I've fi

Re: [Matplotlib-users] Backtrace with CocoaAgg backend

2009-01-21 Thread John Hunter
On Wed, Jan 21, 2009 at 8:31 PM, Adam Mercer wrote: > Anyone? > > Cheers > > Adam > > On Sat, Jan 17, 2009 at 17:19, Adam Mercer wrote: >> Hi >> >> I'm trying to track down an issue with the CocoaAgg backend on Mac OS >> X using MacPorts, when run with the CocoaAgg backend the following >> code:

Re: [Matplotlib-users] Backtrace with CocoaAgg backend

2009-01-21 Thread Adam Mercer
Anyone? Cheers Adam On Sat, Jan 17, 2009 at 17:19, Adam Mercer wrote: > Hi > > I'm trying to track down an issue with the CocoaAgg backend on Mac OS > X using MacPorts, when run with the CocoaAgg backend the following > code: > > from pylab import * > import time > > ion() > > tstart = time.tim

Re: [Matplotlib-users] negative bounding box in eps files

2009-01-21 Thread Alan G Isaac
On 1/21/2009 4:52 PM ramirodsl apparently wrote: > Hi, > > I'm experiencing a weird problem with the bounding box of my eps files. > I have a script that produces my plots and saves them as eps files. > For some reason the x coordinate of the bounding box is negative. > > The bounding box of the

[Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-21 Thread Mauro Cavalcanti
Dear ALL, I received a report of a Mac OS X user who attempted to run my recently released biodiversity mapping software based on MPL/Basemap and wxPython. As I have no access to an Apple Macintosh machine nor have much experience with that OS anyway, I am posting the error report here in the hop

[Matplotlib-users] negative bounding box in eps files

2009-01-21 Thread ramirodsl
Hi, I'm experiencing a weird problem with the bounding box of my eps files. I have a script that produces my plots and saves them as eps files. For some reason the x coordinate of the bounding box is negative. The bounding box of the files are: %%BoundingBox: -54 36 666 756 Then, when I try to

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
Got it working using tkAgg by recompiling matplotlib from source. David On Jan 21 2009, David Trethewey wrote: >I have switched between python2.5 and 2.6, so maybe I've messed up the >installation somehow, and it's not looking for things in the right >directories. > >I fiddled around with the ve

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
I have switched between python2.5 and 2.6, so maybe I've messed up the installation somehow, and it's not looking for things in the right directories. I fiddled around with the versions of cairo and pycairo, and got them to match but still got errors: >>> import gtk Traceback (most recent call la

Re: [Matplotlib-users] pygtk

2009-01-21 Thread John Hunter
On Wed, Jan 21, 2009 at 11:56 AM, Michael Droettboom wrote: > I haven't seen this before, but it definitely looks like an installation > problem with pygtk and/or pycairo, since it fails without matplotlib > even entering into it. In particular, it looks like a possible mismatch > between the ver

Re: [Matplotlib-users] pygtk

2009-01-21 Thread Michael Droettboom
I haven't seen this before, but it definitely looks like an installation problem with pygtk and/or pycairo, since it fails without matplotlib even entering into it. In particular, it looks like a possible mismatch between the versions of pycairo and cairo. Is everything installed from your di

Re: [Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
Michael Droettboom wrote: > What does > > python -c "import gtk" > > say? python2.6 -c "import gtk" Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 48, in from gtk import _gtk File "/usr/lib64/python2.6/sit

[Matplotlib-users] pygtk

2009-01-21 Thread David Trethewey
Although I have python-gtk installed I still get this error message when importing pylab. I'm not sure why. Can anyone enlighten me? >>> from pylab import * Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/site-packages/pylab.py", line 1, in from matplotl

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread Sandro Tosi
On Wed, Jan 21, 2009 at 15:01, mzs wrote: > > Thank you for the information. I figured out that using pylab works. I > would rather use a current version. I tried to find the version you > mentioned in a deb package for Ubuntu but it doesn't seem to exist. Do you > know why or where can I get

Re: [Matplotlib-users] PS backend

2009-01-21 Thread John Hunter
On Wed, Jan 21, 2009 at 8:25 AM, Michael Droettboom wrote: > I've removed the "%%EOF" comment from the embedded font in SVN (your > suggested change). I'm still stumped as to why this matters, but it > should be benign. Since this was a windows platform, I am curious if this has something to do

Re: [Matplotlib-users] PS backend

2009-01-21 Thread Michael Droettboom
I've removed the "%%EOF" comment from the embedded font in SVN (your suggested change). I'm still stumped as to why this matters, but it should be benign. Mike Paul Novak wrote: > I am using matplotlib SVN revision 6810, and GSview 4.9 for Windows. > > Paul > > Michael Droettboom wrote: >> Whi

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread mzs
Thank you for the information. I figured out that using pylab works. I would rather use a current version. I tried to find the version you mentioned in a deb package for Ubuntu but it doesn't seem to exist. Do you know why or where can I get it? Thank you again. Marc John Hunter-4 wrote:

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread John Hunter
On Wed, Jan 21, 2009 at 6:38 AM, mzs wrote: > > Yes, I did have an typo in when reporting the problem, it should be pyplot > not plot. However, the problem is with pyplot anyway. The version of > matplotlib is 0.90.1 as shown here: > > >>> import matplotlib.pyplot as plt > Traceback (most rece

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread mzs
Yes, I did have an typo in when reporting the problem, it should be pyplot not plot. However, the problem is with pyplot anyway. The version of matplotlib is 0.90.1 as shown here: >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "", line 1, in ImportError:

Re: [Matplotlib-users] How can I modify Basemap GSHHS_f.dat?

2009-01-21 Thread Jeff Whitaker
worldh...@hotmail.com wrote: > Dear Jeff. > > I'd like to modify or create gshhs_f.dat, gshhsmeta_f.dat using gshhs_f.b > > It takes long time to show full resolution basemap, and I want just a > small_specific area. > > How can I modify basemap map data file? > > Any help would be appreciated. >

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-21 Thread Sandro Tosi
On Wed, Jan 21, 2009 at 04:23, mzs wrote: > > Hi, > > I am using Ubuntu Gutsy 7.10 and want to use matplotlib.pyplot but when I > execute: > >> import matplotlib.pyplot as plt > > I get: > import matplotlib.plot as plt > Traceback (most recent call last): > File "", line 1, in > ImportError