Skip to content

Commit 931df40

Browse files
committed
merge
2 parents bdc5913 + 47eaded commit 931df40

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ v0.2.3b0:
3535
2023-12-31 fb6d0a8 legend str and single time val
3636
2023-12-31 24f83b0 means and time-dep bins
3737
2024-05-08 db89884 mean logic to apply only to GIN server
38+
2023-01-24 3d0725 remove mean for intermagnet plots (temp fix)
39+
v0.2.3b1:
40+
2025-10-28 9386a66 Catch null units
41+

hapiplot/hapiplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,13 @@ def hapiplot(*args, **kwargs):
387387
z = z.astype('<f8', copy=False)
388388
z = fill2nan(z, meta["parameters"][i]['fill'])
389389

390-
units = meta["parameters"][i]["units"]
390+
units = meta["parameters"][i].get("units", "")
391391
nl = ""
392392
if len(name) + len(units) > 30:
393393
nl = "\n"
394394

395395
#zlabel = name + nl + " [" + units + "]"
396-
zlabel = "";
396+
zlabel = ""
397397
if units is not None:
398398
zlabel = " [" + units + "]"
399399

hapiplot/plot/datetick.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ def draw(fig): fig.canvas.draw()
364364
elif deltaT.days < 366*15:
365365
to = axes.lines[0].get_xdata()[0]
366366
tf = axes.lines[0].get_xdata()[-1]
367-
print(to)
368-
print(tf)
369367
# Ideally would set byyear=list(range(to.year, tf.year,2)) but
370368
# byyear is not a kwarg. Would need to something like
371369
# https://stackoverflow.com/questions/48428729/matplotlib-dates-yearlocator-with-odd-intervals

0 commit comments

Comments
 (0)