File: 63916f55e9f3c15c7e62c15b19a7dc9129d9790d.patch

package info (click to toggle)
mplcursors 0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: python: 1,915; makefile: 14; sh: 9
file content (17 lines) | stat: -rw-r--r-- 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From 63916f55e9f3c15c7e62c15b19a7dc9129d9790d Mon Sep 17 00:00:00 2001
From: Antony Lee <anntzer.lee@gmail.com>
Date: Wed, 30 Oct 2024 17:25:25 +0100
Subject: [PATCH] Fix for Matplotlib 3.9.

--- a/examples/date.py
+++ b/examples/date.py
@@ -15,8 +15,7 @@
                   dt.timedelta(hours=2))
 y = np.sin(t)
 fig, ax = plt.subplots()
-ax.plot_date(t, y, "-")
-fig.autofmt_xdate()
+ax.plot(mdates.num2date(t), y, "-")
 
 # Note that mplcursors will automatically display the x-values as dates.
 mplcursors.cursor()