File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments