@@ -143,7 +143,7 @@ def plot_totals_by_top10_units(args):
143143 "smithsonian_totals_by_units.csv" ,
144144 )
145145 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
146- name_label = "Unit_name "
146+ name_label = "Data_source "
147147 data_label = "Total_objects"
148148 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
149149 data ["Total_objects" ] = data ["Total_objects" ].astype (int )
@@ -157,6 +157,7 @@ def plot_totals_by_top10_units(args):
157157 title = title ,
158158 name_label = name_label ,
159159 data_label = data_label ,
160+ bar_ylabel = "Data Sources" ,
160161 )
161162
162163 image_path = shared .path_join (
@@ -193,7 +194,7 @@ def plot_totals_by_lowest10_units(args):
193194 "smithsonian_totals_by_units.csv" ,
194195 )
195196 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
196- name_label = "Unit_name "
197+ name_label = "Data_source "
197198 data_label = "Total_objects"
198199 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
199200 data ["Total_objects" ] = data ["Total_objects" ].astype (int )
@@ -207,6 +208,7 @@ def plot_totals_by_lowest10_units(args):
207208 title = title ,
208209 name_label = name_label ,
209210 data_label = data_label ,
211+ bar_ylabel = "Data Sources" ,
210212 )
211213
212214 image_path = shared .path_join (
@@ -243,7 +245,7 @@ def plot_totals_by_top10_unit_records(args):
243245 "smithsonian_totals_by_records.csv" ,
244246 )
245247 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
246- name_label = "Unit_name "
248+ name_label = "Data_source "
247249 data_label = "Total_objects"
248250 stack_labels = [
249251 "CC0_without_media_percentage" ,
@@ -260,6 +262,7 @@ def plot_totals_by_top10_unit_records(args):
260262 title = title ,
261263 name_label = name_label ,
262264 stack_labels = stack_labels ,
265+ ylabel = "Data Sources" ,
263266 )
264267 image_path = shared .path_join (
265268 PATHS ["data_phase" ], "smithsonian_by_top10_unit_records.png"
@@ -293,7 +296,7 @@ def plot_totals_by_lowest10_unit_records(args):
293296 "smithsonian_totals_by_records.csv" ,
294297 )
295298 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
296- name_label = "Unit_name "
299+ name_label = "Data_source "
297300 data_label = "Total_objects"
298301 stack_labels = [
299302 "CC0_without_media_percentage" ,
@@ -310,6 +313,7 @@ def plot_totals_by_lowest10_unit_records(args):
310313 title = title ,
311314 name_label = name_label ,
312315 stack_labels = stack_labels ,
316+ ylabel = "Data Sources" ,
313317 )
314318 image_path = shared .path_join (
315319 PATHS ["data_phase" ], "smithsonian_by_lowest10_unit_records.png"
0 commit comments