জয়েন লগইন

ম্যাটপ্লটলিব annotate

🌈ম্যাটপ্লটলিব annotate কি?

📋ম্যাটপ্লটলিব annotate হলো গ্রাফে ব্যাখ্যামূলক লেখা যুক্ত করার পদ্ধতি।

⚒️ম্যাটপ্লটলিব annotate গ্রাফে ব্যাখ্যামূলক লেখা যুক্ত করতে ব্যবহৃত হয়।

ম্যাটপ্লটলিব annotate গ্রাফে ব্যাখ্যামূলক লেখা যুক্ত করার উদাহরণ।

matplotlib
import matplotlib.pyplot as plt

x = [1, 2, 3, 4]
y = [2, 5, 3, 8]

plt.plot(x, y)

plt.annotate(
    "highest",
    xy=(4, 8),
    xytext=(2.5, 7)
)

plt.show()