We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5cdfb commit 1f6627aCopy full SHA for 1f6627a
lib/iris/quickplot.py
@@ -13,8 +13,10 @@
13
14
"""
15
16
+from packaging import version
17
+
18
import cf_units
-from matplotlib import __version__ as mpl_version
19
+from matplotlib import __version__ as _mpl_version
20
import matplotlib.pyplot as plt
21
22
import iris.config
@@ -49,7 +51,7 @@ def _title(cube_or_coord, with_units):
49
51
units = units.symbol
50
52
if units.is_time_reference():
53
# iris.plot uses matplotlib.dates.date2num, which is fixed to the below unit.
- if mpl_version >= "3.3":
54
+ if version.parse(_mpl_version) >= version.parse("3.3"):
55
days_since = "1970-01-01"
56
else:
57
days_since = "0001-01-01"
0 commit comments