]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Add title to the plot
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Thu, 5 Apr 2012 13:24:26 +0000 (16:24 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Thu, 5 Apr 2012 13:24:26 +0000 (16:24 +0300)
emerge-timer.py

index 27a5d9df3659876002149843945d5e40b878b402..8c5c04a8a2d940421a4fd45c2cd01a7b7605c94d 100755 (executable)
@@ -212,6 +212,7 @@ class package:
         plt.plot_date(dates, times, xdate=True, ydate=False)
 
         plt.ylabel("Emerge time [s]")
         plt.plot_date(dates, times, xdate=True, ydate=False)
 
         plt.ylabel("Emerge time [s]")
+        plt.suptitle(self.name)
         fig.autofmt_xdate()
         plt.show()
 
         fig.autofmt_xdate()
         plt.show()