8000 [MNT]: default date limits... · Issue #23151 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[MNT]: default date limits... #23151
Closed
@jklymak

Description

@jklymak

Summary

The default date limits are 2000-01-01 to 2010-01-01. This leads to problems as a default if folks add for instance day tickers without specifying the limits. See for instance: #20202

Proposed fix

We can change these to 1970-01-01 to 1970-01-02. For the default date epoch, this would yield default limits of 0-1 in our float conversion. If folks use the old epoch (0000-01-01), it would still work, but of course be something much larger than 0-1. This should only affect empty date axes, not any axes that folks have actually added data to. If I make this change on main, the only tests that fail are empty axes tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0