Skip to content

Commit 7fc6103

Browse files
committed
rm datetick; fix for fill isotime
1 parent 47eaded commit 7fc6103

7 files changed

Lines changed: 16 additions & 904 deletions

File tree

hapiplot/hapiplot.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,12 @@ def hapiplot(*args, **kwargs):
519519
y = np.asarray(data[name])
520520

521521
if 'fill' in meta["parameters"][i] and meta["parameters"][i]['fill']:
522-
if nodata == False and ptype == 'isotime' or ptype == 'string':
523-
Igood = y != meta["parameters"][i]['fill']
524-
# Note that json reader returns fill to U not b.
525-
Nremoved = data[name].size - Igood.size
522+
if (not nodata) and ptype in ('isotime', 'string'):
523+
fill_value = meta["parameters"][i]['fill']
524+
if ptype == 'isotime':
525+
fill_value = hapitime2datetime(fill_value, allow_missing_Z=True)[0]
526+
Igood = y != fill_value
527+
Nremoved = data[name].size - np.count_nonzero(Igood)
526528
if Nremoved > 0:
527529
# TODO: Implement masking so connected line plots will
528530
# show gaps as they do for NaN values.

0 commit comments

Comments
 (0)