Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implemented __copy__ in Colormap #8314

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

Closed
wants to merge 9 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed indentation
  • Loading branch information
vidursatija authored Mar 19, 2017
commit f7eadbf45fd37e3fd8afb37db45c7ff7c50db827
4 changes: 3 additions & 1 deletion lib/matplotlib/tests/test_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import matplotlib.cbook as cbook
import matplotlib.pyplot as plt
from matplotlib.testing.decorators import image_comparison



def test_resample():
"""
Github issue #6025 pointed to incorrect ListedColormap._resample;
Expand All @@ -43,6 +44,7 @@ def test_resample():
assert_array_almost_equal(lsc3([0, 0.5, 1]), expected)
assert_array_almost_equal(lc3([0, 0.5, 1]), expected)


def test_colormap_copy():
cm = plt.cm.Reds
cm([-1, 0, .5, np.nan, np.inf])
Expand Down