Skip to content

Incorrect margins in log scale #6643

Closed
Closed

Description

@anntzer

As of 2.0b1 and master, semilogy([.2, 2]) gives
semilogy
i.e. the bottom margin is too small.

Actually, handle_single_margin (in _AxesBase) does the right thing (expand the limits after transforming to plot coordinates), but then passes the limits to LogLocator.view_limits, which undoes all the good work while executing

        if vmin <= minpos:
            vmin = minpos

(this check was introduced by 426eabc, let's see whether it's still needed...)

Activity

  1. anntzer commented on Jun 27, 2016

    @anntzer
    ContributorAuthor

    ... interestingly, this only occurs if there's no explicit call to margins either before or after the plotting.

  2. added this to the milestone on Jul 22, 2016
  3. NelleV commented on Nov 11, 2016

    @NelleV
    Member

    Closed by #7410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions