Skip to content

greyscale scatter points appearing blue #6362

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
lzkelley opened this issue May 2, 2016 · 0 comments
Closed

greyscale scatter points appearing blue #6362

lzkelley opened this issue May 2, 2016 · 0 comments
Assignees
Milestone

Comments

@lzkelley
Copy link
Contributor

lzkelley commented May 2, 2016

Weird problem... I'm trying to plot grey scatter plot points using a string like '0.5' for the color. This is showing up as blue in my legend, and kind of purple in the figure. e.g.

plt.scatter(0.2, 0.2, s=2000, color='0.5', marker='.', label='Dot')
plt.scatter(0.2, 0.4, s=2000, color='0.5', marker='*', label='Star')
plt.scatter(0.3, 0.2, s=2000, color='0.5', marker='^', label='Triangle', alpha=0.6)
plt.axhline(0.3, color='0.5', lw=4.0, label='Line')
plt.legend()

That produces the attached figure for me.

I'm using matplotlib 1.5.1 from anaconda, on OS X 10.11.2.

figure_1

@efiring efiring self-assigned this May 15, 2016
mdboom added a commit that referenced this issue May 16, 2016
BUG: fix corner case in scatter color handling; closes #6362
@QuLogic QuLogic added this to the 1.5.2 (Critical bug fix release) milestone May 16, 2016
tacaswell pushed a commit to tacaswell/matplotlib that referenced this issue May 22, 2016
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

No branches or pull requests

4 participants