Skip to content

BUG: raise on invalid colormap for older mpl #4231

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

Merged
merged 3 commits into from
Jul 13, 2013
Merged

BUG: raise on invalid colormap for older mpl #4231

merged 3 commits into from
Jul 13, 2013

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Jul 13, 2013

closes #4215

@ghost ghost assigned cpcloud Jul 13, 2013
import matplotlib.pyplot as plt

if color is None and colormap is not None:
if isinstance(colormap, basestring):
import matplotlib.cm as cm
colormap = cm.get_cmap(colormap)
if colormap is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you need a .format(colormap) here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gnarf

@cpcloud
Copy link
Member Author

cpcloud commented Jul 13, 2013

@jreback thanks for catching that

@cpcloud
Copy link
Member Author

cpcloud commented Jul 13, 2013

@jreback ok 2 merge?

@jreback
Copy link
Contributor

jreback commented Jul 13, 2013

looks ok

cpcloud added a commit that referenced this pull request Jul 13, 2013
BUG: raise on invalid colormap for older mpl
@cpcloud cpcloud merged commit 8a0c2cc into pandas-dev:master Jul 13, 2013
@cpcloud cpcloud deleted the matplotlib-invalid-colomap-test branch July 13, 2013 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_invalid_colormap: ValueError not raised
2 participants