Finished histCaseInsensitive
This commit is contained in:
@@ -30,4 +30,12 @@ def histCaseSensitive(word_dict: Dict[str, List[int]]) -> None:
|
|||||||
lowers = [word_dict[word][1] for word in keys]
|
lowers = [word_dict[word][1] for word in keys]
|
||||||
|
|
||||||
plt.simple_stacked_bar(keys, [uppers, lowers], width=80)
|
plt.simple_stacked_bar(keys, [uppers, lowers], width=80)
|
||||||
|
plt.show()
|
||||||
|
|
||||||
|
def histCaseInsensitive(word_dict: Dict[str, List[int]]) -> None:
|
||||||
|
|
||||||
|
keys = list(word_dict.keys())
|
||||||
|
totals = [sum(word_dict[word]) for word in keys]
|
||||||
|
|
||||||
|
plt.simple_bar(keys, totals, width=80)
|
||||||
plt.show()
|
plt.show()
|
||||||
Reference in New Issue
Block a user