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

Set default axis limits in 2D-plots to the limits of the data · Issue #4815 · matplotlib/matplotlib · GitHub

Repository navigation

Set default axis limits in 2D-plots to the limits of the data #4815

Closed

Description

By default, pcolormesh and friends seem to not use tight boxes, leading to blank bars along the side or top of the figure depending on the range of values plotted. I see no positive results from this behaviour.

Activity

  1. added this to the milestone on Jul 29, 2015
  2. shoyer commented on Aug 4, 2015

    This is also an issue for contour plots.

  3. Tillsten commented on Oct 2, 2015

    Contributor

    +1, always calling autoscale after contour & co should not be necessery.

  4. modified the milestones: , on Oct 8, 2015
  5. mdboom commented on Nov 8, 2015

    Member

    Related to #4891

  6. tacaswell commented on Nov 12, 2015

    Member

    This is going to cause interesting interactions with using margins by default.

  7. efiring commented on Nov 12, 2015

    Member

    It sounds like this is a proposal for the default to execute what would need to be a new "tight" mode in Axes.autoscale_view. Presently, None triggers tight scaling if the artists include images but do not include lines or patches. If I understand correctly, the suggested alternative mode would trigger tight scaling if the artists include or result from any image-like elements (e.g. collections such as quadmesh, or LineCollection or PolyCollection from contour or contourf). This seems reasonable. In its simplest form it would not be difficult to implement: the judgment would be based exclusively on the artists without regard for how they were generated. An alternative would be to add an attribute to artists that would specify whether they should be treated as image-like for autoscaling purposes.

  8. tacaswell commented on Feb 8, 2016

    Member

    This is handled in #5583

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL