Skip to content

BUG: fix autoscale_view with log scale and margins - #7410

Merged
NelleV merged 2 commits into
matplotlib:v2.xfrom
efiring:log_locator_vmin
Nov 5, 2016
Merged

NelleV merged 2 commits into
matplotlib:v2.xfrom
efiring:log_locator_vmin

Conversation

@efiring

@efiring efiring commented Nov 5, 2016

Copy link
Copy Markdown
Member

LogLocator.view_limits was always clipping vmin to minpos;
now it sets vmin to minpos only if vmin <= 0.

LogLocator.view_limits was always clipping vmin to minpos;
now it sets vmin to minpos only if vmin <= 0.
@efiring efiring added this to the 2.0 (style change major release) milestone Nov 5, 2016
@efiring

efiring commented Nov 5, 2016

Copy link
Copy Markdown
Member Author

There are many failed tests because the test baseline images show the effects of the bug. I am fixing the images.

@efiring efiring added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Nov 5, 2016
@efiring efiring changed the title BUG: fix autoscale_view with log scale and margins [MRG] BUG: fix autoscale_view with log scale and margins Nov 5, 2016
@NelleV

NelleV commented Nov 5, 2016

Copy link
Copy Markdown
Member

Thanks! This looks good.

@NelleV NelleV changed the title [MRG] BUG: fix autoscale_view with log scale and margins [MRG+1] BUG: fix autoscale_view with log scale and margins Nov 5, 2016
@NelleV

NelleV commented Nov 5, 2016

Copy link
Copy Markdown
Member

Was there a ticket opened for this bug? It sorts of rings a bell…

@efiring

efiring commented Nov 5, 2016

Copy link
Copy Markdown
Member Author

Closes #6643.

@efiring efiring mentioned this pull request Nov 5, 2016

@QuLogic QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand what minpos is supposed to represent, but all the test images certainly look better.

@efiring

efiring commented Nov 5, 2016

Copy link
Copy Markdown
Member Author

@Qlogic, minpos is the minimum positive value in the data. It is used to handle log scales applied to data that might include zero or negative values.

@NelleV
NelleV merged commit cb21ba7 into matplotlib:v2.x Nov 5, 2016
@NelleV

NelleV commented Nov 5, 2016

Copy link
Copy Markdown
Member

Thanks @efiring !

@efiring
efiring deleted the log_locator_vmin branch November 5, 2016 22:17
@tacaswell

Copy link
Copy Markdown
Member

wow, that is a major improvement!

@efiring

efiring commented Nov 8, 2016

Copy link
Copy Markdown
Member Author

@anntzer pointed out the error in his writeup of #6643.

@Kojoley Kojoley changed the title [MRG+1] BUG: fix autoscale_view with log scale and margins BUG: fix autoscale_view with log scale and margins Nov 8, 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.

4 participants