| 1 | import pylab |
| 2 | |
| 3 | # two gotos |
| 4 | #! ['module numpy'] |
| 5 | import numpy |
| 6 | |
| 7 | #! ['module random'] |
| 8 | import numpy.random |
| 9 | |
| 10 | #? ['array2string'] |
| 11 | numpy.array2string |
| 12 | |
| 13 | #? ['shape'] |
| 14 | numpy.matrix().shape |
| 15 | |
| 16 | #? ['random_integers'] |
| 17 | pylab.random_integers |
| 18 | |
| 19 | #? [] |
| 20 | numpy.random_integers |
| 21 | |
| 22 | #? ['random_integers'] |
| 23 | numpy.random.random_integers |
| 24 | #? ['sample'] |
| 25 | numpy.random.sample |
| 26 | |
| 27 | import numpy |
| 28 | na = numpy.array([1,2]) |
| 29 | #? ['shape'] |
| 30 | na.shape |
| 31 | |
| 32 | # shouldn't raise an error #29, jedi-vim |
| 33 | # doesn't return something, because matplotlib uses __import__ |
| 34 | fig = pylab.figure() |
| 35 | #? |
| 36 | fig.add_subplot |