Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How / Where to download Pylab for Python 2.7 on Win32?

I have googled all over, and don't see where to get pylab.

What am I missing?

Thanks!

like image 784
Jonesome Reinstate Monica Avatar asked Dec 25 '12 05:12

Jonesome Reinstate Monica


People also ask

Does Python 2.7 support matplotlib?

We provide prebuilt binaries for OS X and Windows on the matplotlib download page. Click on the latest release of the “matplotlib” package, choose your python version (2.6, 2.7 or 3.2) and your platform (macosx or win32).

What is PyLab library in Python?

Pylab is a module that provides a Matlab like namespace by importing functions from the modules Numpy and Matplotlib. Numpy provides efficient numerical vector calculations based on underlying Fortran and C binary libraries. Matplotlib contains functions to create visualizations of data.

What should I import for PyLab?

pylab is a convenience module that bulk imports matplotlib. pyplot (for plotting) and numpy (for mathematics and working with arrays) in a single name space. Although many examples use pylab , it is no longer recommended. And then prefixing all of your pyplot functions with plt .


2 Answers

I believe there are two "versions" of pylab floating around/being referred to.

The first is a part of matplotlib -- you just install matplotlib and do either import pylab or import matplotlib.pyplot as pyplot. (More info on pylab vs pyplot).

The second is described here, and as far as I know, doesn't exist yet. The linked version is simply describing a hypothetical vision of what the existing version of pylab could be. It's also unfortunately the first result when you try googling "pylab", which I suspect is what caused your confusion.

Source: http://matplotlib.1069221.n5.nabble.com/pylab-td23420.html#a23423

like image 136
Michael0x2a Avatar answered Sep 22 '22 14:09

Michael0x2a


You can get it as part of EPD's Canopy distribution.

like image 23
bob.sacamento Avatar answered Sep 20 '22 14:09

bob.sacamento