MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / update_plot

Method update_plot

Finance_Tracker/main.py:140–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 return None
139
140 def update_plot(self):
141 self.fig.clear()
142 ax = self.fig.add_subplot(111) # Creates a new subplot
143 ax.pie([self.income, self.expense], labels=['Income', 'Expense'], autopct='%1.1f%%')
144 self.canvas.draw()
145
146 def update_table(self, tree, transactions):
147 for i in tree.get_children():

Callers 1

balance_button_eventMethod · 0.95

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected