Confusion between numpy, scipy, matplotlib and pylab

Posted by goFrendiAsgard on Stack Overflow See other posts from Stack Overflow or by goFrendiAsgard
Published on 2012-10-20T10:44:33Z Indexed on 2012/10/20 11:01 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

Numpy, scipy, matplotlib, and pylab are common terms among they who use python for scientific computation.

I just learn a bit about pylab, and I got a lot of confusion. Whenever I want to import numpy, I can always do:

import numpy as np

I just consider, that once I do

from pylab import *

The numpy will be imported as well (with np alias). So basically the second one do more things compared to the first one.

There are few things I want to ask.

  1. Is it right that pylab is just a wrapper for numpy, scipy and matplotlib?
  2. As np is the numpy alias, what is the scipy and matplotlib alias? (as far as I know, plt is alias of matplotlib.pyplot, but I don't know the alias for the matplotlib itself)

Thanks in advance.

© Stack Overflow or respective owner

Related posts about python

Related posts about numpy