Zaman serisi verilerini açıklama

Matplotlib ile Veri Görselleştirmeye Giriş

Ariel Rokem

Data Scientist

Zaman serisi verileri

Matplotlib ile Veri Görselleştirmeye Giriş

Açıklama (annotation)

fig, ax = plt.subplots()
plot_timeseries(ax, climate_change.index, climate_change['co2'],
               'blue', 'Time', 'CO2 (ppm)')
ax2 = ax.twinx()
plot_timeseries(ax2, climate_change.index, 
                climate_change['relative_temp'],
               'red', 'Time', 'Relative temperature (Celsius)')

ax2.annotate(">1 degree", xy=(pd.Timestamp("2015-10-06"), 1))
plt.show()

Matplotlib ile Veri Görselleştirmeye Giriş

Metnin konumlandırılması

ax2.annotate(">1 degree",
             xy=(pd.Timestamp('2015-10-06'), 1),
             xytext=(pd.Timestamp('2008-10-06'), -0.2))

Matplotlib ile Veri Görselleştirmeye Giriş

Açıklamaya ok ekleme

ax2.annotate(">1 degree",
             xy=(pd.Timestamp('2015-10-06'), 1),
             xytext=(pd.Timestamp('2008-10-06'), -0.2),
             arrowprops={})

Matplotlib ile Veri Görselleştirmeye Giriş

Ok özelliklerini özelleştirme

ax2.annotate(">1 degree",
             xy=(pd.Timestamp('2015-10-06'), 1),
             xytext=(pd.Timestamp('2008-10-06'), -0.2),
             arrowprops={"arrowstyle":"->", "color":"gray"})

Matplotlib ile Veri Görselleştirmeye Giriş

Açıklamaları özelleştirme

Matplotlib ile Veri Görselleştirmeye Giriş

Grafik açıklamalarıyla pratik yapın!

Matplotlib ile Veri Görselleştirmeye Giriş

Preparing Video For Download...