Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ac91ec

Browse files
committed
add imports where needed
1 parent e1b17ec commit 2ac91ec

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

examples/mplot3d/contour3d_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from mpl_toolkits.mplot3d import axes3d
22
import matplotlib.pyplot as plt
3+
from matplotlib import cm
34

45
fig = plt.figure()
56
ax = fig.add_subplot(111, projection='3d')

examples/mplot3d/contour3d_demo2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from mpl_toolkits.mplot3d import axes3d
22
import matplotlib.pyplot as plt
3+
from matplotlib import cm
34

45
fig = plt.figure()
56
ax = fig.gca(projection='3d')

examples/mplot3d/contour3d_demo3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from mpl_toolkits.mplot3d import axes3d
22
import matplotlib.pyplot as plt
3+
from matplotlib import cm
34

45
fig = plt.figure()
56
ax = fig.gca(projection='3d')

examples/mplot3d/contourf3d_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from mpl_toolkits.mplot3d import axes3d
22
import matplotlib.pyplot as plt
3+
from matplotlib import cm
34

45
fig = plt.figure()
56
ax = fig.gca(projection='3d')

examples/mplot3d/contourf3d_demo2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from mpl_toolkits.mplot3d import axes3d
77
import matplotlib.pyplot as plt
8+
from matplotlib import cm
89

910
fig = plt.figure()
1011
ax = fig.gca(projection='3d')

examples/pylab_examples/hexbin_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
gridsize=30
4040

4141
plt.subplot(211)
42-
plt.hexbin(x,y, C=z, gridsize=gridsize, marginals=True, cmap=plt.cm.RdBu, vmax=abs(z).max(), vmin=-abs(z).max()) # NEEDS NORM
42+
plt.hexbin(x,y, C=z, gridsize=gridsize, marginals=True, cmap=plt.cm.RdBu, vmax=abs(z).max(), vmin=-abs(z).max())
4343
plt.axis([xmin, xmax, ymin, ymax])
4444
cb = plt.colorbar()
4545
cb.set_label('mean value')

0 commit comments

Comments
 (0)