Skip to content

changing plot_date to plot due to matplotlib3.11 update#154

Merged
marcio-melendez merged 1 commit into
spacetelescope:developfrom
sbetti22:fix-plot-date
Jun 30, 2026
Merged

changing plot_date to plot due to matplotlib3.11 update#154
marcio-melendez merged 1 commit into
spacetelescope:developfrom
sbetti22:fix-plot-date

Conversation

@sbetti22

Copy link
Copy Markdown

This is a PR to fix the bugs raised in #153. plot_date has been removed in Matplotlib 3.11. According to the documentation, plot now works with datetime and numpy objects and can be replaced.

Wherever plot_date was given in trending.py, I have replaced it with

ax.xaxis.axis_date()
ax.plot()

This fix has been tested on both Matplotlib 3.11 and an earlier version of Matplotlib (3.10.9) and I confirmed that using plot produces the same results and is identical to the previous plot_date method in both versions of Matplotlib.

@marcio-melendez marcio-melendez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as intended without errors for matplotlib 3.11. Thanks for implementing this fix! Looks good.

Image

@marcio-melendez
marcio-melendez merged commit 5026954 into spacetelescope:develop Jun 30, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants