Re: [Matplotlib-users] Failed pip install on OSX

2013-08-04 Thread Scott Lasley

On Aug 4, 2013, at 4:47 PM, Matthew Brett  wrote:

> Hi,
> 
> Congratulations on the new release.
> 
> I just tried installing in a fresh installation of Python 2.7 from Python.org
> 
> Am I right in thinking the recommended method is:
> 
>pip install matplotlib
> 
> ?  I did this, and then:
> 
 import matplotlib.pyplot as plt
> Traceback (most recent call last):
>  File "", line 1, in 
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py",
> line 24, in 
>import matplotlib.colorbar
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py",
> line 29, in 
>import matplotlib.collections as collections
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py",
> line 23, in 
>import matplotlib.backend_bases as backend_bases
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
> line 50, in 
>import matplotlib.textpath as textpath
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py",
> line 14, in 
>from matplotlib.mathtext import MathTextParser
>  File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py",
> line 62, in 
>import matplotlib._png as _png
> ImportError: 
> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so,
> 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib
>  Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
>  Reason: Incompatible library version: _png.so requires version
> 42.0.0 or later, but libpng12.0.dylib provides version 36.0.0
> 
> There were no previous versions of matplotlib installed.  This on OSX 10.6:
> 
> Python 2.7.5  just installed from python.org
> X11 installed from the Apple installation disks for 10.6 before `pip
> install matplotlib`
> No homebrew etc
> 
> Any hints about how I should debug this further?
> 
> Thanks a lot for any help,
> 
> Matthew

I was able to install numpy 1.7.1 and matplotlib 1.30 under OS X 10.6.8 with 
X11 version XQuartz 2.3.6 (xorg-server 1.4.2-apple56) and python 2.7.5 64-bit 
from python.org using pip 1.4.

Have you tried running Software Update?  If you installed X11 after updating to 
10.6.8 you can run the combo updater ( http://support.apple.com/kb/DL1399 ) to 
get the latest X11.   Alternately, you could try installing XQuartz from 
http://xquartz.macosforge.org/landing/ 

hth,
Scott


--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Failed pip install on OSX

2013-08-04 Thread Matthew Brett
Hi,

Congratulations on the new release.

I just tried installing in a fresh installation of Python 2.7 from Python.org

Am I right in thinking the recommended method is:

pip install matplotlib

?  I did this, and then:

>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py",
line 24, in 
import matplotlib.colorbar
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py",
line 29, in 
import matplotlib.collections as collections
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py",
line 23, in 
import matplotlib.backend_bases as backend_bases
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 50, in 
import matplotlib.textpath as textpath
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py",
line 14, in 
from matplotlib.mathtext import MathTextParser
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py",
line 62, in 
import matplotlib._png as _png
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so,
2): Library not loaded: /usr/X11/lib/libpng12.0.dylib
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
  Reason: Incompatible library version: _png.so requires version
42.0.0 or later, but libpng12.0.dylib provides version 36.0.0

There were no previous versions of matplotlib installed.  This on OSX 10.6:

Python 2.7.5  just installed from python.org
X11 installed from the Apple installation disks for 10.6 before `pip
install matplotlib`
No homebrew etc

Any hints about how I should debug this further?

Thanks a lot for any help,

Matthew

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Change column number within legend

2013-08-04 Thread ChaoYue
could you use the bbox_to_anchor keyword to place your legend in a precise
way so that they could be alignd?
sorry ,this is the only way I could think of (But I am not a real expert in
matplotlib)

Chao

On Sun, Aug 4, 2013 at 5:45 PM, Tyrax [via matplotlib] <
ml-node+s1069221n41704...@n5.nabble.com> wrote:

> Hi all,
>
> this is my first eMail to a mailing list, I hope I'm not messing it up. I
> posted my question already on stackoverflow, but apparently there's no
> simple solution to it:
>
> http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend
>
> In other words, I have a Figure with a many-entries-legend, but the legend
> text for most but not all of the object is very short. I'd like to use two
> or more columns for those short entries and switch back to single column
> mode when dealing with the longer legend entries.
>
> Two options came to my mind. One, make the legend work like a
> multicolumn-table in LaTeX or, two, having a container with multiple,
> well-aligned legends with individual properties for each one.
>
> I tried to solve my problem by setting up two legends. The downside is the
> need for additional aligning of the two legends. Even this is still beyond
> my skills.
>
> Thanks, Tyrax
>
> --
>
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704.html
>  To start a new topic under matplotlib - users, email
> ml-node+s1069221n...@n5.nabble.com
> To unsubscribe from matplotlib, click 
> here
> .
> NAML
>



-- 
***
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704p41706.html
Sent from the matplotlib - users mailing list archive at Nabble.com.--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] RFE: dictionnary of figures

2013-08-04 Thread Pierre Haessig
Hi Frédéric,

I don't understand what is the "dictionnary of figures" feature you are
mentionning. Maybe you could write a short mockup script using it ?

However, it's worth mentionning that you can use not only numbers in
figures but also *strings*.

>>> fig = plt.figure('crude oil price')

I use this 95 % of the time. I think it helps a lot the figure
addressing problem.

best,
Pierre

Le 29/07/2013 16:34, Frédéric Parrenin a écrit :
> Currently, one call figures with their number in matplotlib.
> If you have a code which draw a lot a different figures at different
> places with some of them being optional, this is not very convenient.
>
> One convenient way to call figure would be to use a dictionnary of
> figures.
> Of course I could create some wrapper around matplotlib.figure
> function but it would be far more convenient if such feature would be
> standard in matplotlib.
>
> Is there any plan to implement such a feature?
>
> Best regards,
>
> Frédéric Parrenin


--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Change column number within legend

2013-08-04 Thread Jens Nullmeier
Hi all,

 

this is my first eMail to a mailing list, I hope I'm not messing it up. I posted my question already on stackoverflow, but apparently there's no simple solution to it:

http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend

 

In other words, I have a Figure with a many-entries-legend, but the legend text for most but not all of the object is very short. I'd like to use two or more columns for those short entries and switch back to single column mode when dealing with the longer legend entries.

 

Two options came to my mind. One, make the legend work like a multicolumn-table in LaTeX or, two, having a container with multiple, well-aligned legends with individual properties for each one.

 

I tried to solve my problem by setting up two legends. The downside is the need for additional aligning of the two legends. Even this is still beyond my skills.

 

Thanks, Tyrax

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users