1515 cos , nonzero , take , concatenate , all , newaxis
1616
1717from mlab import linspace , meshgrid
18- import _contour
18+ import matplotlib . _cntr as _cntr
1919from cm import ScalarMappable
2020from cbook import iterable , is_string_like , flatten , enumerate , \
2121 allequal , dict_delall , strip_math , popall , silent_list
@@ -449,7 +449,7 @@ def __init__(self, ax, *args, **kwargs):
449449 self .linewidths = 0.05 # Good default for Postscript.
450450 if iterable (self .linewidths ):
451451 self .linewidths = self .linewidths [0 ]
452- C = _contour .Cntr (x , y , z .filled (), ma .getmaskorNone (z ))
452+ C = _cntr .Cntr (x , y , z .filled (), ma .getmaskorNone (z ))
453453 lowers = self ._levels [:- 1 ]
454454 uppers = self ._levels [1 :]
455455 for level , level_upper in zip (lowers , uppers ):
@@ -465,7 +465,7 @@ def __init__(self, ax, *args, **kwargs):
465465 else :
466466 tlinewidths = self ._process_linewidths ()
467467 self .tlinewidths = tlinewidths
468- C = _contour .Cntr (x , y , z .filled (), ma .getmaskorNone (z ))
468+ C = _cntr .Cntr (x , y , z .filled (), ma .getmaskorNone (z ))
469469 for level , width in zip (self .levels , tlinewidths ):
470470 nlist = C .trace (level , points = 0 )
471471 col = LineCollection (nlist ,
0 commit comments