FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BUG: make autoscale('tight') set margins to zero; closes #6968 by efiring · Pull Request #7458 · matplotlib/matplotlib · GitHub

Repository navigation

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

Merged
dopplershift merged 3 commits into
matplotlib:v2.xfrom
efiring:autoscale_tight
Nov 14, 2016
Merged

dopplershift merged 3 commits into
matplotlib:v2.xfrom
efiring:autoscale_tight

Conversation

efiring commented Nov 14, 2016

Copy link
Copy Markdown
Member

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 added this to the 2.0 (style change major release) milestone Nov 14, 2016
QuLogic added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Nov 14, 2016
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 merged commit 6ed32d3 into matplotlib:v2.x Nov 14, 2016
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL