Skip to content

BUG: make autoscale('tight') set margins to zero; closes #6968 #7458

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 3 commits into from
Nov 14, 2016

Conversation

efiring
Copy link
Member

@efiring efiring commented Nov 14, 2016

This replaces the first commit of #7024 and keeps the second (the test), so it is an alternative.

The operative part is simply setting the Axes._xmargin and/or _ymargin to zero in autoscale('tight'). This is necessary to maintain behavior consistent with the docstring. The changes in autoscale_view are a description of the tight kwarg in the docstring, and a change in a large 'if' block to improve readability by putting the bail-out condition first, reducing indentation, and adding a comment. There is no functional change in autoscale_view.

@efiring efiring added this to the 2.0 (style change major release) milestone Nov 14, 2016
@QuLogic QuLogic added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Nov 14, 2016
@tacaswell tacaswell changed the title BUG: make autoscale('tight') set margins to zero; closes #6968 [MRG+1] BUG: make autoscale('tight') set margins to zero; closes #6968 Nov 14, 2016
@dopplershift dopplershift merged commit 6ed32d3 into matplotlib:v2.x Nov 14, 2016
@dopplershift dopplershift changed the title [MRG+1] BUG: make autoscale('tight') set margins to zero; closes #6968 BUG: make autoscale('tight') set margins to zero; closes #6968 Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants