Re: [Matplotlib-users] Grid problem?

2012-01-18 Thread Paul Ivanov
Hi David,

David Perlman, on 2012-01-06 16:57,  wrote:
> Am I doing this wrong?  I am doing the best I can to follow the
> documentation exactly.

It doesn't look like you're doing it wrong - and your example
works for me, though I'm not running OS X and can't verify that
it works as it should on your chosen backend.

Can anyone else who has OS X verify David's error? David, it'd be
useful to know what your matplotlib.__version__ is, as well as
whether or not the error occurs on the latest version, if that's
possible.

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] macosx lion installation challenges

2012-01-18 Thread Jeff Whitaker
On 1/18/12 1:10 PM, Hans-Martin v. Gaudecker wrote:
> I fought some time with NumPy, SciPy, and Matplotlib under the same 
> configuration -- in the end I settled for re-installing Python via homebrew. 
> Everything worked like a charme out of the box. Nice guide to be found here: 
> http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#numpy
>
> Best,
> Hans-Martin

You can also install numpy/scipy/matplotlib/basemap with macports.  
Worked for me out of the box on my new macbook air.

-Jeff
>
>
>
> On 18 Jan 2012, at 20:08, matplotlib-users-requ...@lists.sourceforge.net 
> wrote:
>
>> Hi,
>>
>> I am having troubles  getting matplotlib to install.  I have mac os X lion 
>> with Xcode 4.2.1 installed and  I have used git to get the latest version of 
>> matplotlib.  I am also running python 2.7.2 from the python.org site. The 
>> installation process was going fine based on the make.osx file supplied .  
>> The only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to 
>> get it to compile, the I hit the following problem:
>>
>> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
>> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g 
>> -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
>> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
>>  -I. 
>> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2
>>  -I./freetype2 
>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
>> src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o
>> In file included from src/ft2font.cpp:3:
>> src/ft2font.h:16:22: error: ft2build.h: No such file or directory
>> src/ft2font.h:17:10: error: #include expects "FILENAME" or
>> src/ft2font.h:18:10: error: #include expects "FILENAME" or
>> src/ft2font.h:19:10: error: #include expects "FILENAME" or
>> src/ft2font.h:20:10: error: #include expects "FILENAME" or
>> src/ft2font.h:21:10: error: #include expects "FILENAME" or
>> In file included from src/ft2font.cpp:3:
>> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared
>> src/ft2font.h:34: error: ?FT_Int? has not been declared
>> src/ft2font.h:34: error: ?FT_Int? has not been declared
>> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token
>> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no 
>> type
>> src/ft2font.h:131: error: ?FT_Face? does not name a type
>> src/ft2font.h:132: error: ?FT_Matrix? does not name a type
>> src/ft2font.h:133: error: ?FT_Vector? does not name a type
>> src/ft2font.h:134: error: ?FT_Error? does not name a type
>> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope
>> src/ft2font.h:135: error: template argument 1 is invalid
>> src/ft2font.h:135: error: template argument 2 is invalid
>> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope
>> src/ft2font.h:136: error: template argument 1 is invalid
>> src/ft2font.h:136: error: template argument 2 is invalid
>> src/ft2font.h:141: error: ?FT_BBox? does not name a type
>> src/ft2font.cpp:51: error: ?FT_Library? does not name a type
>> src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void
>> src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope
>> src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope
>> src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope
>> src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope
>> In file included from src/ft2font.cpp:3:
>> src/ft2font.h:16:22: error: ft2build.h: No such file or directory
>> src/ft2font.h:17:10: error: #include expects "FILENAME" or
>> src/ft2font.h:18:10: error: #include expects "FILENAME" or
>> src/ft2font.h:19:10: error: #include expects "FILENAME" or
>> src/ft2font.h:20:10: error: #include expects "FILENAME" or
>> src/ft2font.h:21:10: error: #include expects "FILENAME" or
>> In file included from src/ft2font.cpp:3:
>> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared
>> src/ft2font.h:34: error: ?FT_Int? has not been declared
>> src/ft2font.h:34: error: ?FT_Int? has not been declared
>> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token
>> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no 
>> type
>> src/ft2font.h:131: error: ?FT_Face? does not name a type
>> src/ft2font.h:132: error: ?FT_Matrix? does not name a type
>> src/ft2font.h:133: error: ?FT_Vector? does not name a type
>> src/ft2font.h:134: error: ?FT_Error? does not name a type
>> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope
>> src/ft2font.h:135: error: template argument 1 is invalid
>> src/ft2font.h:135: error: template argument 2 is invalid
>> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope
>> src/ft2font.h:136: error: template argument 1 is invalid
>> src/ft2fon

Re: [Matplotlib-users] macosx lion installation challenges

2012-01-18 Thread Hans-Martin v. Gaudecker
I fought some time with NumPy, SciPy, and Matplotlib under the same 
configuration -- in the end I settled for re-installing Python via homebrew. 
Everything worked like a charme out of the box. Nice guide to be found here: 
http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#numpy

Best,
Hans-Martin



On 18 Jan 2012, at 20:08, matplotlib-users-requ...@lists.sourceforge.net wrote:

> Hi,
> 
> I am having troubles  getting matplotlib to install.  I have mac os X lion 
> with Xcode 4.2.1 installed and  I have used git to get the latest version of 
> matplotlib.  I am also running python 2.7.2 from the python.org site. The 
> installation process was going fine based on the make.osx file supplied .  
> The only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to 
> get it to compile, the I hit the following problem:
> 
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 
> -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
>  -I. 
> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2
>  -I./freetype2 
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
> src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o
> In file included from src/ft2font.cpp:3:
> src/ft2font.h:16:22: error: ft2build.h: No such file or directory
> src/ft2font.h:17:10: error: #include expects "FILENAME" or 
> src/ft2font.h:18:10: error: #include expects "FILENAME" or 
> src/ft2font.h:19:10: error: #include expects "FILENAME" or 
> src/ft2font.h:20:10: error: #include expects "FILENAME" or 
> src/ft2font.h:21:10: error: #include expects "FILENAME" or 
> In file included from src/ft2font.cpp:3:
> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared
> src/ft2font.h:34: error: ?FT_Int? has not been declared
> src/ft2font.h:34: error: ?FT_Int? has not been declared
> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token
> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type
> src/ft2font.h:131: error: ?FT_Face? does not name a type
> src/ft2font.h:132: error: ?FT_Matrix? does not name a type
> src/ft2font.h:133: error: ?FT_Vector? does not name a type
> src/ft2font.h:134: error: ?FT_Error? does not name a type
> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope
> src/ft2font.h:135: error: template argument 1 is invalid
> src/ft2font.h:135: error: template argument 2 is invalid
> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope
> src/ft2font.h:136: error: template argument 1 is invalid
> src/ft2font.h:136: error: template argument 2 is invalid
> src/ft2font.h:141: error: ?FT_BBox? does not name a type
> src/ft2font.cpp:51: error: ?FT_Library? does not name a type
> src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void
> src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope
> src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope
> src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope
> src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope
> In file included from src/ft2font.cpp:3:
> src/ft2font.h:16:22: error: ft2build.h: No such file or directory
> src/ft2font.h:17:10: error: #include expects "FILENAME" or 
> src/ft2font.h:18:10: error: #include expects "FILENAME" or 
> src/ft2font.h:19:10: error: #include expects "FILENAME" or 
> src/ft2font.h:20:10: error: #include expects "FILENAME" or 
> src/ft2font.h:21:10: error: #include expects "FILENAME" or 
> In file included from src/ft2font.cpp:3:
> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared
> src/ft2font.h:34: error: ?FT_Int? has not been declared
> src/ft2font.h:34: error: ?FT_Int? has not been declared
> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token
> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type
> src/ft2font.h:131: error: ?FT_Face? does not name a type
> src/ft2font.h:132: error: ?FT_Matrix? does not name a type
> src/ft2font.h:133: error: ?FT_Vector? does not name a type
> src/ft2font.h:134: error: ?FT_Error? does not name a type
> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope
> src/ft2font.h:135: error: template argument 1 is invalid
> src/ft2font.h:135: error: template argument 2 is invalid
> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope
> src/ft2font.h:136: error: template argument 1 is invalid
> src/ft2font.h:136: error: template argument 2 is invalid
> src/ft2font.h:141: error: ?FT_BBox? does not name a type
> src/ft2font.cpp:51: error: ?FT_Library? does not name a type
> src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void
> src/ft2font.cpp:116: er

Re: [Matplotlib-users] Animation example error on Mac after installation

2012-01-18 Thread Benjamin Root
On Sun, Jan 15, 2012 at 1:14 AM, Nathan Salomonis wrote:

> Greetings,
>
> I just installed matplotlib on my Mac OS 10.6 Machine (64bit) with default
> Python 2.7.1 (easy_install). While the initial 2D graph examples work
> great, when testing any of the animations, such as:
> http://matplotlib.sourceforge.net/examples/animation/simple_anim.html
>
> I always get the same error:
>
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py",
> line 248, in _blit_clear
> a.figure.canvas.restore_region(bg_cache[a])
> AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region'
>
> Since "restore_region" is only in backend_agg.py and not in
> backend_macosx.py, After reading more on this, I thought this might be
> corrected by re-installing from source and setting the setup.cfg to macosx
> = True and backend = MacOSX prior to building, but this did not correct the
> issue. Also, changing backend: Agg to backend: MacOSX in:
>
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc
>
> didn't work either. Does anyone have experience with this or further
> insight?
>
> Thanks,
> Nathan
>
>
Yes, I encountered this before.  The problem is with blitting and the
macosx backend.  Have you tried using a different backend or setting
blit=False in some of the animation commands?

Ben Root
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation of matplotlib 2.7 issue

2012-01-18 Thread Christoph Gohlke


On 1/17/2012 5:04 PM, Mac Juneau wrote:
> Problem: Installation of matlibplot for Python 2.7's .exe file requires
> that Numby be installed first. But the Numby installation list does not
> include a version for Python 2.7. The highest available version is for
> Python 2.6.
> So, Numby 2.6 won't install because it can't find a Python 2.6 and
> matlibplot for Python 2.7 won't run because it can't find an installed
> Numby.
> Is there a work around?
>
>

Numpy-1.6.1 installers for Python 2.5 to 3.2 are at 


Christoph

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Broken links

2012-01-18 Thread Benjamin Root
On Tue, Jan 17, 2012 at 10:54 AM, Matthew Lennig  wrote:

> I have found several broken links on the matplotlib documentation pages.
> The broken links I've found occur when I click on an example to see the
> source code. Here's one of them:
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html
> The above link generates a 404 error.
>
>
Hmm, that address is completely wrong.  It should be
mpl_examples/pylab_examples/demo_tight_layout_00.py
[note: examples -> mpl_examplesand .html --> .py]

I wonder what is causing that?
Ben Root
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation of matplotlib 2.7 issue

2012-01-18 Thread Eric Firing
On 01/17/2012 03:04 PM, Mac Juneau wrote:
> Problem: Installation of matlibplot for Python 2.7's .exe file requires
> that Numby be installed first. But the Numby installation list does not
> include a version for Python 2.7. The highest available version is for
> Python 2.6.
> So, Numby 2.6 won't install because it can't find a Python 2.6 and
> matlibplot for Python 2.7 won't run because it can't find an installed
> Numby.
> Is there a work around?

I see what looks like a Win py 2.7 version of numpy:

http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/

Eric

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Grid problem?

2012-01-18 Thread David Perlman
When I try to turn on the grid for just one axis, seemingly in perfect 
accordance with the documentation at 
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.grid

it seems like there is a problem.

My commands are pasted below.

Am I doing this wrong?  I am doing the best I can to follow the documentation 
exactly.

Thanks for any help!


import matplotlib
matplotlib.use('MacOSX')
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(111)
ax.plot([1,2,3])
ax.set_xlabel('Hi there')
ax.grid(True, axis='x')


bombayduck:~$ python
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.use('MacOSX')
>>> import matplotlib.pyplot as plt
>>> fig=plt.figure()
>>> ax=fig.add_subplot(111)
>>> ax.plot([1,2,3])
[]
>>> ax.set_xlabel('Hi there')

>>> ax.grid(True, axis='x')
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py",
 line 1823, in grid
self.xaxis.grid(b, **kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py",
 line 965, in grid
if len(kwargs): artist.setp(tick.gridline,**kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/artist.py",
 line 1169, in setp
func = getattr(o,funcName)
AttributeError: 'Line2D' object has no attribute 'set_axis'

-dave--
A neuroscientist is at the video arcade, when someone makes him a $1000 bet
on Pac-Man. He smiles, gets out his screwdriver and takes apart the Pac-Man
game. Everyone says "What are you doing?" The neuroscientist says "Well,
since we all know that Pac-Man is based on electric signals traveling
through these circuits, obviously I can understand it better than the other
guy by going straight to the source!"


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Tkinter Scaling Problems

2012-01-18 Thread Karthik Krishnamoorthi
Hi,

I'm trying to embed a Matplotlib graph along with the toolbar in my Tkinter
application.
The problem I'm facing is that when I maximize the application, the plot
only fills the
top half of the screen and the bottom half is taken up by the toolbar with
a lot of whitespace.

I based my code on the embedding_with_tk examples, and I've tried every
layout combination
with pack(), but I still can't get just the plot to take up all the space.
This is the relevant code:

f2 = Tkinter.Frame(n())
canvas = FigureCanvasTkAgg(f, master=f2)
canvas.show()
canvas.get_tk_widget().pack(side=Tkinter.TOP, fill=Tkinter.BOTH,
expand=1)
toolbar = NavigationToolbar2TkAgg(canvas, f2)
toolbar.update()
canvas._tkcanvas.pack(side=Tkinter.BOTTOM, fill=Tkinter.BOTH,
expand=0)
Any help would be welcome.

Thanks,

KK
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap install problem for 64-Bit/x86_64 on os-x

2012-01-18 Thread drcoopa


>
> Looking at the install of basemap closely I noticed some errors that  
> make me wonder whether the geos libraries need to be compiled as 64- 
> bit to work?
>   

Mike:  Yes, I suspect that is the problem.  Unfortunately, I've no idea 
how to fix that.

Even if you get beyond that though - I think you are going to run into 
problems with basemap/geos using python 2.6 and numpy 1.2.1.  I've been 
waiting for a numpy 1.3 release that fully supports python 2.6 before 
digging into this.

*

Was this ever resolved?  I am having the same basemap/geos error - "Symbol
not found: _GEOSArea"

I am using python 2.7 with numpy-1.6.1 for py 2.7.  I made sure to use the
32 bit python to match with with the numpy version.  I'm near at my wits
end, so any help would be awesome
-- 
View this message in context: 
http://old.nabble.com/basemap-install-problem-for-64-Bit-x86_64-on-os-x-tp21921348p33132200.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib on Mac 64 bit.

2012-01-18 Thread Yoshiki Vázquez Baeza
Hello Matplotlib group,

I'm currently working with Matplotlib and with python 2.7.1 (from python.org) 
and I realized that the version of matplotlib that I downloaded has no x86 
architecture support.

This is what the installation looks like:
bash-3.2$ otool -L 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
 (architecture ppc):
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.3)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.3.3)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 
1.0.0)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 
47.1.0)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
 (architecture i386):
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
1.2.3)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.3.3)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 
1.0.0)

The error I'm getting is the following:

  File 
"/Users/yoshikivazquezbaeza1/svn_sw/qiime/scripts//plot_taxa_summary.py", line 
19, in 
from qiime.plot_taxa_summary import make_all_charts
  File "/Users/yoshikivazquezbaeza1/svn_sw/qiime/qiime/plot_taxa_summary.py", 
line 23, in 
from matplotlib.font_manager import FontProperties
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py",
 line 52, in 
from matplotlib import ft2font
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so,
 2): no suitable image found.  Did find:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so:
 no matching architecture in universal wrapper

I wanted to know if there will be a future release of the mpkg to install 
matplotlib on the mac.

Any help will be greatly appreciated.

Yoshiki.--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] What version of basemap do I need for matplotlib 0.99.3?

2012-01-18 Thread eduardo . antonio
I don' t know what version of basemap do I need for matplotlib 0.99.3, I'm 
using the debian 6 installation of matplotlib (0.99.3) and geos.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] legend not draggable when secondary y-axis present

2012-01-18 Thread German Salazar
Any ideas?

Also, as in the example
here,
the legend seems to be behind the quantity being plotted against the one of
the secondary y-axisdoes this have anything to do with that?...it is
that maybe the legend is draggable but I am not getting to it?

gsal
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] legend not draggable when secondary y-axis present

2012-01-18 Thread gsal

Any ideas?

Also, as in the example 
http://matplotlib.sourceforge.net/examples/pylab_examples/multiple_yaxis_with_spines.html
here , the legend seems to be behind the quantity being plotted against the
one of the secondary y-axisdoes this have anything to do with that?...it
is that maybe the legend is draggable but I am not getting to it?

gsal
-- 
View this message in context: 
http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33162008p33162008.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Installation of matplotlib 2.7 issue

2012-01-18 Thread Mac Juneau
Problem: Installation of matlibplot for Python 2.7's .exe file requires that 
Numby be installed first. But the Numby installation list does not include a 
version for Python 2.7. The highest available version is for Python 2.6.

So, Numby 2.6 won't install because it can't find a Python 2.6 and matlibplot 
for Python 2.7 won't run because it can't find an installed Numby.

Is there a work around?--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Round plot with 'npstere'-projection

2012-01-18 Thread Serhiy Hrechanyy
> Yes, they all make squares. Why is it so important the plot be round?

Well, it is definitely not a matter of life or death. Just think that 
round polar plots look a bit nicer.

I haven't tried your workaround solution yet (must do something urgent 
first). But thanks a lot for your help and of course for the  Basemap. 
Very helpful tool even with square maps))!!

Serhiy


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] macosx lion installation challenges

2012-01-18 Thread Andrew
Hi

Hi,

I am having troubles  getting matplotlib to install.  I have mac os X lion with 
Xcode 4.2.1 installed and  I have used git to get the latest version of 
matplotlib.  I am also running python 2.7.2 from the python.org site. The 
installation process was going fine based on the make.osx file supplied .  The 
only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to get it 
to compile, the I hit the following problem:

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
 -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2
 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
src/ft2font.h:17:10: error: #include expects "FILENAME" or 
src/ft2font.h:18:10: error: #include expects "FILENAME" or 
src/ft2font.h:19:10: error: #include expects "FILENAME" or 
src/ft2font.h:20:10: error: #include expects "FILENAME" or 
src/ft2font.h:21:10: error: #include expects "FILENAME" or 
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:131: error: ‘FT_Face’ does not name a type
src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:133: error: ‘FT_Vector’ does not name a type
src/ft2font.h:134: error: ‘FT_Error’ does not name a type
src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:135: error: template argument 1 is invalid
src/ft2font.h:135: error: template argument 2 is invalid
src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:141: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
src/ft2font.h:17:10: error: #include expects "FILENAME" or 
src/ft2font.h:18:10: error: #include expects "FILENAME" or 
src/ft2font.h:19:10: error: #include expects "FILENAME" or 
src/ft2font.h:20:10: error: #include expects "FILENAME" or 
src/ft2font.h:21:10: error: #include expects "FILENAME" or 
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:131: error: ‘FT_Face’ does not name a type
src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:133: error: ‘FT_Vector’ does not name a type
src/ft2font.h:134: error: ‘FT_Error’ does not name a type
src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:135: error: template argument 1 is invalid
src/ft2font.h:135: error: template argument 2 is invalid
src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:141: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope
lipo: can't figure out the architecture type of: 
/var/folders/2d/t8xdmbdj103bmcjbm72j4998gp/T//ccOY6Ibr.out
error: command 'gcc-4.2' failed with exit status 1

Any thoughts on how to fix it?

thanks, Andrew
--
Keep Your Developer Skills Current wit

[Matplotlib-users] How to use colorbar in subplot

2012-01-18 Thread davcra

Hi, I need to add a colorbar to each plot in a subplot but cant seem to get
it to work. My code is as follows,

# Plot time series of slowness, baz, abs.power and rel.power
labels = 'rel.power abs.power baz slow'.split()

fig = plt.figure()
for i, lab in enumerate(labels):
ax = fig.add_subplot(4, 1, i + 1)
ax.scatter(out[:, 0], out[:, i + 1], c=out[:, 1], alpha=0.6,
   edgecolors='none')
ax.set_ylabel(lab)
colorbar()
fig.autofmt_xdate()
fig.subplots_adjust(top=0.95, right=0.95, bottom=0.2, hspace=0.25)
plt.show()

Dont get any error but the colorbar is missing from the plot, anyone know
how it is done
-- 
View this message in context: 
http://old.nabble.com/How-to-use-colorbar-in-subplot-tp33097878p33097878.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Animation example error on Mac after installation

2012-01-18 Thread Nathan Salomonis
Greetings,

I just installed matplotlib on my Mac OS 10.6 Machine (64bit) with default
Python 2.7.1 (easy_install). While the initial 2D graph examples work
great, when testing any of the animations, such as:
http://matplotlib.sourceforge.net/examples/animation/simple_anim.html

I always get the same error:

File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py",
line 248, in _blit_clear
a.figure.canvas.restore_region(bg_cache[a])
AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region'

Since "restore_region" is only in backend_agg.py and not in
backend_macosx.py, After reading more on this, I thought this might be
corrected by re-installing from source and setting the setup.cfg to macosx
= True and backend = MacOSX prior to building, but this did not correct the
issue. Also, changing backend: Agg to backend: MacOSX in:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc

didn't work either. Does anyone have experience with this or further
insight?

Thanks,
Nathan
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Broken links

2012-01-18 Thread Matthew Lennig
I have found several broken links on the matplotlib documentation pages.
The broken links I've found occur when I click on an example to see the
source code. Here's one of them:
http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html
The above link generates a 404 error.
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] placing colorbar when using subplot command

2012-01-18 Thread Michael Rawlins





 From: Benjamin Root 
To: Michael Rawlins  
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Tuesday, January 17, 2012 2:02 PM
Subject: Re: [Matplotlib-users] placing colorbar when using subplot command
 



On Tue, Jan 17, 2012 at 12:37 PM, Michael Rawlins  wrote:


>
>
>
>
>
> From: Benjamin Root 
>To: Michael Rawlins  
>Cc: "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Tuesday, January 17, 2012 10:36 AM
>Subject: Re: [Matplotlib-users] placing colorbar when using subplot command
> 
>
>
>
>On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins  wrote:
>
>
>>
>>I'm relatively new to matplotlib. Trying to place a colorbar in a figure. The 
>>code below, placed in a file and executed with python, draws 4 maps using 
>>basemap. I've been unable to get a colorbar to show up anywhere on the 
>>figure. Ideally I would like the option of placing a colorbar across the 
>>bottom, spanning across both bottom map panels.  Also would need the option 
>>of placing a colorbar either to the right of or below each map. Uncommenting 
>>the two lines under "Here make a colorbar" cause an error. I've used those 
>>commands when creating just one map using the figure command.
>>
>>
>>TIA,
>>Mike
>>
>>
>>
>>
>
>Mike,
>
>Try using the axes_grid1 toolkit to produce your axes objects and to allocate 
>enough room for colorbars.
>
>http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html
>
>Cheers!
>Ben Root
>
>P.S. - a little history, there used to be an axes_grid toolkit, but has since 
>been superseded by axes_grid1.
>
>
>Clicking on source code on that page produces an error. For several of the 
>graphic on that page, dropping the code into a file and running also produces 
>various errors. Being new to this software, having a specific example that I 
>can run and then incorporate into my code would be a big help. 
>
>Mike
>
>
>

Mike,

I do apologize for that.  We will have to get that fixed on the website (not 
sure why it is happening).  I have attached an example file for you to try.  
Also, which version of matplotlib are you running?  Without the error message 
you are getting, it would be hard to tell you what is wrong (most likely it is 
a version issue).

Ben Root



Version 0.99.1.1 installed through Synaptic package manager on system running 
Ubuntu 10.04. I'd rather not attempt a fresh install from sources just yet.  
Adding a colorbar alonside each map panel is possible. Anyone able to modify 
that code to make that work? I'm assuming it very simple for an experienced 
user.  Also, is it possible to add axes_grid1.py to my directory? If I want to 
get fancy in the future I will install version 1 and use axes_grid1.py.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'0.99.1.1'
>>> --
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Strange default choice of ylabel ticks

2012-01-18 Thread Yann Tambouret
Hi Per,

I think you want to use the 'ticklabel_format' method:

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.ticklabel_format

Here's your example modified some. 'some_point2A.pdf' produces exactly the
same as the default. 'some_point2B.pdf' does not use an offset, and maybe
produces more of what you were looking for.

import pylab as pl

some_points = [0.94589396231920286, 0.94593953605915637,
0.94601787712257401, 0.94597530431819743, 0.9459922123931529,
0.94622433138703055]
pl.plot(some_points, '.-')

pl.ticklabel_format(style='plain',useOffset=0.9458,axis='y')
pl.savefig('some_point2A.pdf')
pl.ticklabel_format(style='plain',useOffset=False,axis='y')
pl.savefig('some_point2B.pdf')

-Yann



On Wed, Jan 18, 2012 at 4:15 AM, Per Nielsen  wrote:

> Hi all
>
> I get a rather strange scaling / choice of y-axis ticks for the following
> script:
>
> import pylab as pl
>
> some_points = [0.94589396231920286, 0.94593953605915637,
> 0.94601787712257401, 0.94597530431819743, 0.9459922123931529,
> 0.94622433138703055]
> pl.plot(some_points, '.-')
> pl.savefig('some_point2.pdf')
>
> output here:
>
> http://dl.dropbox.com/u/2244215/some_point2.pdf
>
> This is a rather simple plot, but matplotlib choses a strange scaling of
> the y-axis by default. How do I get a more standard scaling without
> specifying the yticks manually?
>
> Best
>
> Per
>
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Strange default choice of ylabel ticks

2012-01-18 Thread Per Nielsen
Hi all

I get a rather strange scaling / choice of y-axis ticks for the following
script:

import pylab as pl

some_points = [0.94589396231920286, 0.94593953605915637,
0.94601787712257401, 0.94597530431819743, 0.9459922123931529,
0.94622433138703055]
pl.plot(some_points, '.-')
pl.savefig('some_point2.pdf')

output here:

http://dl.dropbox.com/u/2244215/some_point2.pdf

This is a rather simple plot, but matplotlib choses a strange scaling of
the y-axis by default. How do I get a more standard scaling without
specifying the yticks manually?

Best

Per
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users