File: pylab_.py

package info (click to toggle)
python-jedi 0.10.0~git1%2Bf05c071-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,064 kB
  • ctags: 3,014
  • sloc: python: 16,997; makefile: 149; ansic: 13
file content (36 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import pylab

# two gotos
#! ['module numpy']
import numpy

#! ['module random']
import numpy.random

#? ['array2string']
numpy.array2string

#? ['shape']
numpy.matrix().shape

#? ['random_integers']
pylab.random_integers

#? []
numpy.random_integers

#? ['random_integers']
numpy.random.random_integers
#? ['sample']
numpy.random.sample

import numpy
na = numpy.array([1,2])
#? ['shape']
na.shape

# shouldn't raise an error #29, jedi-vim
# doesn't return something, because matplotlib uses __import__
fig = pylab.figure()
#? 
fig.add_subplot