@@ -483,11 +483,9 @@ def draw_networkx_edges(G, pos,
483
483
try :
484
484
import matplotlib
485
485
import matplotlib .pylab as pylab
486
- import matplotlib .numerix as nmex
487
- import matplotlib .cbook as cb
486
+ import numpy as nmex
488
487
from matplotlib .colors import colorConverter ,Colormap
489
488
from matplotlib .collections import LineCollection
490
- import matplotlib .numerix .mlab as mlab
491
489
except ImportError :
492
490
raise ImportError , "Matplotlib required for draw()"
493
491
except RuntimeError :
@@ -603,10 +601,10 @@ def draw_networkx_edges(G, pos,
603
601
)
604
602
605
603
# update view
606
- minx = mlab .amin (mlab .ravel (edge_pos [:,:,0 ]))
607
- maxx = mlab .amax (mlab .ravel (edge_pos [:,:,0 ]))
608
- miny = mlab .amin (mlab .ravel (edge_pos [:,:,1 ]))
609
- maxy = mlab .amax (mlab .ravel (edge_pos [:,:,1 ]))
604
+ minx = nmex .amin (nmex .ravel (edge_pos [:,:,0 ]))
605
+ maxx = nmex .amax (nmex .ravel (edge_pos [:,:,0 ]))
606
+ miny = nmex .amin (nmex .ravel (edge_pos [:,:,1 ]))
607
+ maxy = nmex .amax (nmex .ravel (edge_pos [:,:,1 ]))
610
608
611
609
w = maxx - minx
612
610
h = maxy - miny
0 commit comments