@@ -179,7 +179,7 @@ def plot_totals_by_top10_units(args):
179179 " distribution of top 10 institute member across"
180180 " Smithsonian Institute with an average of"
181181 f" { average_unit :,} objects across the top 10"
182- "Institute members." ,
182+ " Institute members." ,
183183 )
184184
185185
@@ -244,13 +244,15 @@ def plot_totals_by_records(args):
244244 )
245245 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
246246 name_label = "Unit_name"
247+ data_label = "Total_objects"
247248 stack_labels = [
248249 "CC0_without_media_percentage" ,
249250 "CC0_with_media_percentage" ,
250251 "Others_percentage" ,
251252 ]
252253 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
253- data = data .head (10 )
254+ data .sort_values (data_label , ascending = True , inplace = True )
255+ data = data .tail (10 )
254256 title = "Totals by records"
255257 plt = plot .stacked_barh_plot (
256258 args = args ,
@@ -275,7 +277,7 @@ def plot_totals_by_records(args):
275277 title ,
276278 image_path ,
277279 "Plots showing totals by CC0 records. This is the"
278- " breakdown of top 10 records with highest CC0 records"
280+ " top 10 records with a breakdown of CC0 records"
279281 " without media, CC0 records with media and records"
280282 " that are not associated with CC0." ,
281283 )
0 commit comments