Skip to content

ordering issues between set_xmargin and set_xscale #7093

Closed

Description

@anntzer

As of 2.0b4, the order in which calls to set(xmargin=...) and set(xscale=...) are made result in different plots:

from matplotlib import pyplot as plt
fig, axs = plt.subplots(2)
axs[0].plot([1, 2], [1, 2])
axs[1].plot([1, 2], [1, 2])
axs[0].set(xscale="log"); axs[0].set(xmargin=0)
axs[1].set(xmargin=0); axs[1].set(xscale="log")
plt.show()

20

The ordering did not matter in 1.5, but that was because the setting of xmargin was effectively ignored :-)
15

I'm suggesting to milestone this to 2.0, but I'll let someone else make that call.

Activity

  1. efiring commented on Sep 12, 2016

    @efiring
    Member

    The minor ticks are also missing in the 2.0 example.

  2. anntzer commented on Sep 12, 2016

    @anntzer
    ContributorAuthor

    That's because the axis span from 1 to 2, so there's no place for minor ticks.

  3. jenshnielsen commented on Sep 12, 2016

    @jenshnielsen
    Member

    Sounds like this could be related to #6968

  4. added this to the milestone on Sep 12, 2016
  5. modified the milestones: , on Nov 16, 2016
  6. efiring commented on Nov 16, 2016

    @efiring
    Member

    This is connected to #7413.

  7. modified the milestones: , on Oct 3, 2017
  8. modified the milestones: needs sorting, v3.3.0 on May 19, 2020
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