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

saving pdf breaks with invisible markers? #8142

Closed
amueller opened this issue Feb 24, 2017 · 2 comments
Closed

saving pdf breaks with invisible markers? #8142

amueller opened this issue Feb 24, 2017 · 2 comments
Milestone

Comments

@amueller
Copy link
Contributor

amueller commented Feb 24, 2017

import matplotlib.pyplot as plt
import numpy as np
plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none')
plt.savefig("asdf.pdf")

TypeError: 'NoneType' object is not subscriptable

This happened to me because I was using matplotlib 1.5 code, where this was actually not invisible.
Changing markeredgecolor='k' (which was the default before) fixes the problem. But that is a pretty surprising error and might hint at something going wrong somewhere?

In particular, png rendering works fine, only pdf errors.

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Feb 24, 2017
@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0.2 (next bug fix release) May 3, 2017
@ghost ghost mentioned this issue May 19, 2017
6 tasks
This was referenced May 27, 2017
@tacaswell tacaswell modified the milestones: 2.1.1 (next bug fix release), 2.2 (next feature release) Oct 9, 2017
@anntzer
Copy link
Contributor

anntzer commented Apr 23, 2018

Fixed by #8850 (AFAICT, please request a reopen if not).

@anntzer anntzer closed this as completed Apr 23, 2018
@anntzer anntzer modified the milestones: needs sorting, v2.1 Apr 23, 2018
@amueller
Copy link
Contributor Author

Fixed in 2.1.0 (or earlier).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants