clip_on = False does not work for x-axis #2675
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I set clip_on = False the curve extends beyond the y-limits, but it does not extend beyond the x-limits. Am I doing something wrong, or is this a bug?
For example, the following code:
produces the plot I would expect:
However, all I have to do is change the y-limits,
and I get the following plot:
Why does the first plot extend beyond the y-limits, while the second one does not extend beyond the x-limits? In case it matters, I am using matplotlib 1.3.0 with the TkAgg backend, but apparently (http://stackoverflow.com/questions/20523752/matplotlib-clip-on-false-does-not-work-on-x-axis) it also happens with the MacOSX backend.