Untitled
import matplotlib.pyplot as plt import pandas as pd # Data for the comparison chart data = { "Accounting Type": ["Financial Accounting", "Management Accounting", "Cost Accounting"], "Purpose": [ "Provides overall financial performance of a business.", "Helps in making internal business decisions.", "Analyzes production costs to control expenses." ], "Users": [ "External users like investors, creditors, and regulators.", "Internal users like managers and business owners.", "Internal users like cost analysts and production managers." ], "Key Focus": [ "Profit and loss, balance sheet, cash flow.", "Budgeting, forecasting, decision-making.", "Cost control, cost reduction, efficiency." ] } # Convert data to a DataFrame for visualization df = pd.DataFrame(data) # Plotting the comparison chart fig, ax = plt.subplots(figsize=(10, 3)) ax.axis('off') table = ax.table( cellText=df.values, colLabels=df.columns, cellLoc='left', loc='center', colColours=["#D1EAF0"] * 4 ) # Adjust table appearance table.auto_set_font_size(False) table.set_fontsize(10) table.scale(1.2, 1.5) # Set title plt.title("Comparison of Accounting Types", fontsize=14, weight='bold') plt.tight_layout() # Display the chart plt.show()
Leave a Comment