Matplotlib Basics
Line, bar and scatter plots.💡 Python-এর মূল প্লটিং লাইব্রেরি—বাকিগুলো (seaborn, pandas plot) এর উপর তৈরি।
- 1fig, ax = plt.subplots(figsize=(8,4)) — Figure = পুরো ক্যানভাস, Axes = একটি চার্ট
- 2ax.plot (লাইন), ax.bar, ax.scatter, ax.hist
- 3লেবেল: ax.set_title, set_xlabel, set_ylabel, legend()
- 4plt.tight_layout(); fig.savefig("chart.png", dpi=200)