If you import normally:

- Code: Select all
`import numpy`

then you have to access the function fully qualified:

- Code: Select all
`numpy.linspace`

If you import using as:

- Code: Select all
`import numpy as np`

then you have to access the function qualified by the name you chose:

- Code: Select all
`np.linspace`

If you specifically import that function:

- Code: Select all
`from numpy import linspace`

You can simply access it via:

- Code: Select all
`linspace`

this should only be used in moderation.

DO NOT USE THE METHOD BELOW THIS LINEIf you collapse everything into your global namespace with a star import:

- Code: Select all
`from numpy import *`

You can also access it directly by name:

- Code: Select all
`linspace`

but you are an inherently bad person.

-Mek

Yoriz - Rather then hijack the OP thread with a discussion about showing bad ways of doing things i've deleted my post and the following replys to it.