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

Skip to content

restore 'None' (a string) as a valid marker style (draw nothing) #413

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 1 commit into from
Aug 8, 2011

Conversation

leejjoon
Copy link
Contributor

@leejjoon leejjoon commented Aug 8, 2011

With the recent refactoring of marker style, set_marker("None") stopped working, and this simple patch fixes this.

For a reference, here is a documentation of Line2D.set_marker method in v1.0.x-maint branch, which says that "None" is a valid marker style.

https://github.com/matplotlib/matplotlib/blob/v1.0.x-maint/lib/matplotlib/lines.py#L755

@leejjoon
Copy link
Contributor Author

leejjoon commented Aug 8, 2011

@mdboom, can you check if this is a right approach?

@WeatherGod
Copy link
Member

I would also like to point out that I have noticed that margers specified by a color are getting black outlines. Was this intended? It is quite possible that the tests are not catching this because the thresholds might be too high.

@mdboom
Copy link
Member

mdboom commented Aug 8, 2011

@leejjoon: Looks good. Just an oversight on my part.

@WeatherGod: I think markers with a specified color have always had black outlines -- maybe I'm just misunderstanding: can you provide a code example? Can you open a new issue, because I'll probably close this one shortly.

mdboom added a commit that referenced this pull request Aug 8, 2011
restore 'None' (a string) as a valid marker style (draw nothing)
@mdboom mdboom merged commit ba4043a into matplotlib:master Aug 8, 2011
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.

3 participants