11import matplotlib .pyplot as plt
22from cycler import cycler
3- from pddc_helpers import (load_bwi_data , aggregate_by_month , aggregate_by_day ,
3+ from w_helpers import (load_ornl_data , aggregate_by_month , aggregate_by_day ,
44 extract_day_of_hourly , extract_month_of_daily )
55
66
77plt .ion ()
88
9- bwi = load_bwi_data ()
10-
119
1210def setup_temperature_figure (** kwargs ):
1311 fig , ax_lst = plt .subplots (3 , 1 , sharey = True , ** kwargs )
@@ -22,6 +20,7 @@ def setup_temperature_figure(**kwargs):
2220 fig .tight_layout ()
2321 return fig , ax_lst
2422
23+
2524def plot_aggregated_errorbar (ax , gb , label , picker = None , ** kwargs ):
2625 kwargs .setdefault ('capsize' , 3 )
2726 kwargs .setdefault ('markersize' , 5 )
@@ -210,8 +209,9 @@ def remove(self):
210209 self .yearly_ax .figure .canvas .mpl_disconnect (self .cid )
211210
212211
212+ ornl = load_ornl_data ()
213213fig , (ax_by_month , ax_by_day , ax_by_hour ) = setup_temperature_figure ()
214- bwi_at = AggregatedTimeTrace (bwi , 'bwi ' , ax_by_month , ax_by_day , ax_by_hour )
214+ ornl_at = AggregatedTimeTrace (ornl , 'ornl ' , ax_by_month , ax_by_day , ax_by_hour )
215215fig .suptitle ('Temperature' )
216216
217217
0 commit comments