Skip to content

ordering issues between set_xmargin and set_xscale #7093

Closed
@anntzer

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.

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