Skip to content

Commit 0462d2e

Browse files
committed
Ignore None when converting data
1 parent f427d56 commit 0462d2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/units.py

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def wrapper(*args, **kwargs):
7878

7979
# Helper method to process unit info, and convert *original_data*
8080
def _process_info(original_data, axis):
81+
if original_data is None:
82+
return
8183
if axis == 'x':
8284
axes._process_unit_info(xdata=original_data, kwargs=kwargs)
8385
converted_data = axes.convert_xunits(original_data)

0 commit comments

Comments
 (0)