Skip to content

Commit 8886aaa

Browse files
committed
new mpl cm api
1 parent 37230c1 commit 8886aaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_unmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
import matplotlib.cm as cm
2+
from matplotlib import colormaps as cm
33
import scipy.signal
44

55
import unmap

unmap/unmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import numpy as np
1414
from scipy.spatial import cKDTree
1515
from scipy.cluster.vq import kmeans
16-
from matplotlib import cm
16+
from matplotlib import colormaps as cm
1717
from matplotlib.colors import ListedColormap, hsv_to_rgb, rgb_to_hsv
1818
from matplotlib.colors import to_rgb, LinearSegmentedColormap
1919

0 commit comments

Comments
 (0)