Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use get_cmap from matplotlib.colormaps #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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