Nice simple python project using matplotlib library, install pip library before installing these libraries. Then, you can easily install the library by typing py -m pip install matplotlib in the visual studio terminal section.

import matplotlib.pyplot as plt


# Örnek verileri oluşturun

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

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


# Çizgi grafiği oluşturun

plt.plot(x, y, label='Veri Seti', color='b', marker='o', linestyle='-', linewidth=2)


# Eksen etiketleri ve başlık ekleyin

plt.xlabel('X Ekseni')

plt.ylabel('Y Ekseni')

plt.title('Matplotlib Örnek Çizgi Grafiği')


# Grafik üzerindeki veri noktalarını işaretleyin

for i in range(len(x)):

    plt.text(x[i], y[i], f'({x[i]}, {y[i]})', ha='right')


# Grafik için bir legent ekleyin

plt.legend()


# Grafik penceresini gösterin

plt.show()


Yorumlar

Bu blogdaki popüler yayınlar

THE KULAKLIK

BİZ Mİ TOPU SEÇERİZ YOKSA TOP Mİ BİZİ SEÇER TOPUN İZİNDE 😂

Abu , Labne, Labubu 😅