Skip to content

Replace deprecated plot_date with plot#636

Open
m4cd4r4 wants to merge 1 commit intoastropy:mainfrom
m4cd4r4:fix/replace-plot-date
Open

Replace deprecated plot_date with plot#636
m4cd4r4 wants to merge 1 commit intoastropy:mainfrom
m4cd4r4:fix/replace-plot-date

Conversation

@m4cd4r4
Copy link

@m4cd4r4 m4cd4r4 commented Mar 10, 2026

Fixes #603.

ax.plot_date() was deprecated in matplotlib 3.9. Replaced with ax.plot() in plot_airmass, plot_altitude, and plot_parallactic. Added ax.xaxis_date() before each formatting block so the axis still uses date-aware locating.

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.08%. Comparing base (a4d89a0) to head (d74a38e).

Files with missing lines Patch % Lines
astroplan/plots/time_dependent.py 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #636      +/-   ##
==========================================
- Coverage   72.90%   72.08%   -0.82%     
==========================================
  Files          14       14              
  Lines        1849     1845       -4     
==========================================
- Hits         1348     1330      -18     
- Misses        501      515      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Replace deprecated plot_date

1 participant