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

plot() - Markevery only supports startpoint and stepsize, not endpoint #1981

Closed
vMeijin opened this issue May 6, 2013 · 0 comments
Closed
Milestone

Comments

@vMeijin
Copy link

vMeijin commented May 6, 2013

Hello,
i think it would be useful if it would be possibile to specify the range where to draw markers. I encountered the problem, when i want to change the start and end marker, that I cant prevent the drawing of the last marker. I wanted to draw them with scatter().
The corresponding code lies in lines.py after line 548:

if markevery is not None:
                    if iterable(markevery):
                        startind, stride = markevery
                    else:
                        startind, stride = 0, markevery
                    if tpath.codes is not None:
                        codes = tpath.codes[startind::stride] 
                    else:
                        codes = None
                    vertices = tpath.vertices[startind::stride]
                    subsampled = Path(vertices, codes)
                else:
                    subsampled = tpath
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

2 participants