@@ -492,11 +492,6 @@ def hapiplot(*args, **kwargs):
492492 y = np .asarray (data [name ])
493493
494494
495- remove_mean = False
496- if 'uk/GIN_' in meta ['x_server' ]:
497- remove_mean = True
498- y_mean = np .nanmean (y , axis = 0 )
499-
500495 if 'fill' in meta ["parameters" ][i ] and meta ["parameters" ][i ]['fill' ]:
501496 if ptype == 'isotime' or ptype == 'string' :
502497 Igood = y != meta ["parameters" ][i ]['fill' ]
@@ -591,19 +586,13 @@ def hapiplot(*args, **kwargs):
591586 if nodata :
592587 col_name = col_name + " [no data in interval]"
593588
594- if remove_mean :
595- col_name = "{0:s} - {1:.2f}" .format (col_name , y_mean [l ])
596-
597589 if 'label' in meta ['parameters' ][i ] and \
598590 type (meta ['parameters' ][i ]['label' ]) == list and \
599591 len (meta ['parameters' ][i ]['label' ]) > l and \
600592 meta ['parameters' ][i ]['label' ][l ].strip () != '' :
601593 col_name = meta ['parameters' ][i ]['label' ][l ]
602594 if nodata :
603595 col_name = col_name + " [no data in interval]"
604- else :
605- if remove_mean :
606- col_name = "{0:s} - {1:.2f}" .format (col_name , y_mean [l ])
607596
608597 if type (units ) == list :
609598 if len (units ) == 1 :
@@ -645,10 +634,7 @@ def hapiplot(*args, **kwargs):
645634 tsopts ['nodata' ] = True
646635
647636 with rc_context (rc = opts ['rcParams' ]):
648- if remove_mean :
649- fig = timeseries (Time , y - y_mean , ** tsopts )
650- else :
651- fig = timeseries (Time , y , ** tsopts )
637+ fig = timeseries (Time , y , ** tsopts )
652638
653639 meta ["parameters" ][i ]['hapiplot' ]['figure' ] = fig
654640
0 commit comments