Finished histCaseSensitive
This commit is contained in:
@@ -22,3 +22,12 @@ def parseWords(filename: str) -> Dict[str, List[int]]:
|
||||
line = input_file.readline()
|
||||
|
||||
return word_dict
|
||||
|
||||
def histCaseSensitive(word_dict: Dict[str, List[int]]) -> None:
|
||||
|
||||
keys = list(word_dict.keys())
|
||||
uppers = [word_dict[word][0] for word in keys]
|
||||
lowers = [word_dict[word][1] for word in keys]
|
||||
|
||||
plt.simple_stacked_bar(keys, [uppers, lowers], width=80)
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user