Pārlūkot izejas kodu

Show host as plot title

Matthias Vogelgesang 8 gadi atpakaļ
vecāks
revīzija
c07425ac05
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      plot

+ 1 - 0
plot

@@ -34,6 +34,7 @@ if __name__ == '__main__':
 
         df = pd.DataFrame(data, index=pd.to_datetime(dates))
         df.plot()
+        plt.title(host)
 
 
     if args.output: