@@ -122,7 +122,7 @@ def plot_products(args):
122122 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
123123 name_label = "CC legal tool product"
124124 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
125-
125+ data . index = data . index . map ( lambda x : x . replace ( "CC0 1.0" , "CC0 1.0" ))
126126 data = data [::- 1 ] # reverse order
127127
128128 title = "Products totals and percentages"
@@ -213,6 +213,7 @@ def plot_latest_tools(args):
213213 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
214214 name_label = "CC legal tool"
215215 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
216+ data .index = data .index .map (lambda x : x .replace (" " , " " ))
216217 data .sort_values (name_label , ascending = False , inplace = True )
217218
218219 title = "Latest CC legal tools"
@@ -242,6 +243,9 @@ def plot_latest_tools(args):
242243 image_path ,
243244 "The plot shows the latest Creative Commons (CC) legal tool totals and"
244245 " percentages." ,
246+ "The latest tools include Licenses version 4.0 (CC BY 4.0, CC BY-NC"
247+ " 4.0, CC BY-NC-ND 4.0, CC BY-NC-SA 4.0, CC-BY-ND 4.0, CC BY-SA 4.0),"
248+ " CC0 1.0, and the Public Domain Mark (PDM 1.0)." ,
245249 )
246250
247251
@@ -256,6 +260,7 @@ def plot_prior_tools(args):
256260 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
257261 name_label = "CC legal tool"
258262 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
263+ data .index = data .index .map (lambda x : x .replace (" " , " " ))
259264 data .sort_values (name_label , ascending = False , inplace = True )
260265
261266 title = "Prior CC legal tools"
@@ -284,7 +289,8 @@ def plot_prior_tools(args):
284289 title ,
285290 image_path ,
286291 "The plot shows prior Creative Commons (CC) legal tool totals and"
287- " percentages. The unit names have been normalized (~~`CC BY-ND-NC`~~"
292+ " percentages. Prior CC licenses include versions 1.0, 2.0, 2.1, 2.5,"
293+ " and 3.0. The unit names have been normalized (~~`CC BY-ND-NC`~~"
288294 " => `CC BY-NC-ND`)." ,
289295 )
290296
@@ -301,6 +307,7 @@ def plot_retired_tools(args):
301307 LOGGER .info (f"data file: { file_path .replace (PATHS ['repo' ], '.' )} " )
302308 name_label = "CC legal tool"
303309 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
310+ data .index = data .index .map (lambda x : x .replace (" " , " " ))
304311 data .sort_values (name_label , ascending = False , inplace = True )
305312
306313 title = "Retired CC legal tools"
@@ -379,14 +386,15 @@ def plot_countries_highest_usage(args):
379386 SECTION_TITLE ,
380387 title ,
381388 image_path ,
382- "The plot shows countries with the highest useage of the latest"
389+ "The plot shows countries with the highest usage of the latest"
383390 " Creative Commons (CC) legal tools." ,
384391 "The latest tools include Licenses version 4.0 (CC BY 4.0, CC BY-NC"
385392 " 4.0, CC BY-NC-ND 4.0, CC BY-NC-SA 4.0, CC-BY-ND 4.0, CC BY-SA 4.0),"
386393 " CC0 1.0, and the Public Domain Mark (PDM 1.0).\n "
387394 "\n "
388- f"The complete data set indicates there are a total of { total_count } "
389- " online works using one of the latest CC legal tools." ,
395+ "The complete countries data set indicates there are a total of"
396+ f" { total_count } online works using one of the latest CC legal tools."
397+ " This conflicts with the languages data set, below." ,
390398 )
391399
392400
@@ -433,14 +441,15 @@ def plot_languages_highest_usage(args):
433441 SECTION_TITLE ,
434442 title ,
435443 image_path ,
436- "The plot shows the languages with the highest useage of the latest"
444+ "The plot shows the languages with the highest usage of the latest"
437445 " Creative Commons (CC) legal tools." ,
438446 "The latest tools include Licenses version 4.0 (CC BY 4.0, CC BY-NC"
439447 " 4.0, CC BY-NC-ND 4.0, CC BY-NC-SA 4.0, CC-BY-ND 4.0, CC BY-SA 4.0),"
440448 " CC0 1.0, and the Public Domain Mark (PDM 1.0).\n "
441449 "\n "
442- f"The complete data set indicates there are a total of { total_count } "
443- " online works using one of the latest CC legal tools." ,
450+ "The complete languages data set indicates there are a total of"
451+ f" { total_count } online works using one of the latest CC legal tools."
452+ " This conflicts with the countries data set, above." ,
444453 )
445454
446455
0 commit comments