Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"import matplotlib.pyplot as plt\n",
"from skimage import img_as_ubyte \n",
"\n",
"jet = matplotlib.cm.get_cmap('jet')\n",
"jet = matplotlib.colormaps.get_cmap('jet')\n",
"\n",
"np.random.seed(int(1)) # start random number generator\n",
"n = int(5) # starting points\n",
Expand Down
2 changes: 1 addition & 1 deletion pythreejs/pythreejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def make_text(text, position=(0, 0, 0), height=1):

def height_texture(z, colormap='viridis'):
"""Create a texture corresponding to the heights in z and the given colormap."""
from matplotlib import cm
from matplotlib import colormaps as cm
from skimage import img_as_ubyte

colormap = cm.get_cmap(colormap)
Expand Down