Skip to content

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