Spaces:
Sleeping
Sleeping
| import matplotlib.pyplot as plt | |
| def plot_tax_breakdown(income, tax, deductions, credits): | |
| labels = ["Tax Payable", "Deductions", "Tax Credits", "Net Income"] | |
| values = [tax, deductions, credits, income - tax] | |
| plt.pie(values, labels=labels, autopct="%1.1f%%", startangle=140) | |
| plt.title("Tax Breakdown") | |
| plt.show() | |