8000 [Bug]: sticky edge related changes for datetime plots · Issue #28567 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: sticky edge related changes for datetime plots #28567
Closed
@rcomer

Description

@rcomer

Bug summary

Having just picked up v3.9.1, we are seeing downstream image test failures due to additional whitespace in contourf and pcolor plots that use datetimes. The change bisects to #28393.

Code for reproduction

import datetime

import numpy as np
import matplotlib.pyplot as plt

dts = [datetime.datetime(2009, 9, 9, 17, 0) + datetime.timedelta(minutes=n) for n in range(10, 61, 10)]
foo = range(5)
data = np.arange(30).reshape(6, 5)

plt.contourf(foo, dts, data)
plt.show()

Actual outcome

image

Expected outcome

Before #28393 I get
image

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

v3.9.1 and main

Matplotlib Backend

No response

Python version

3.12

Jupyter version

No response

Installation

conda

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

      0