Пример #1
0
 def hideAll(self):
     for m in self.measurements:
         m.show(False)
Пример #2
0
 def showAll(self):
     for m in self.measurements:
         m.show(True)
Пример #3
0
 def showText(self, val):
     self.show_text = val
     for m in self.measurements:
         m.show_text = val
         m.show(True)
Пример #4
0
import math as plt


x = input("Your document: ")


d = {}
length = len(x)


for i in range(length):

    if x[i] not in d and x[i].isalpha():

        y = 0

        for j in range(i, length):

            if x[i] == x[j]:
                y += 1

        d[x[i]] = y


plt.bar(range(len(d)), list(d.values()), align='center')
plt.xticks(range(len(d)), list(d.keys()))

plt.show()