import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
from matplotlib.font_manager import FontProperties
hindi_font = FontProperties(fname = '/home/dip/WebScraping/fonts/Mangal.ttf')
figure(num=None, figsize=(15, 6), dpi=80, facecolor='w', edgecolor='k')
a = [('सरकारले', 3410), ('अर्ब', 3143), ('आर्थिक', 3026), ('रुपैयाँ', 2965),
('कारण', 2758), ('काम', 2745), ('व्यवस्था', 2683), ('समेत', 2580)]
b = dict(a)
val_val = b.values()
key_val = b.keys()
plt.bar(key_val,val_val)
plt.show()
Output Image Here But its not getting rendered as seen in the abouve screenshot text is displayed like rectangle boxes.