Added x axis label

This commit is contained in:
Heiko J Schick
2021-11-21 22:03:43 +01:00
parent 8726c438f0
commit 71b86e1679
+2 -2
View File
@@ -69,6 +69,8 @@ x = df_cores.year
y = df_cores.cores y = df_cores.cores
plt.scatter(x, y, marker = "o", color = black, alpha = alpha) plt.scatter(x, y, marker = "o", color = black, alpha = alpha)
plt.xlabel("Year")
plt.legend(["Transistors (thousands)", plt.legend(["Transistors (thousands)",
"Single-thread SPECint (thousands)", "Single-thread SPECint (thousands)",
"Frequency (MHz)", "Frequency (MHz)",
@@ -78,8 +80,6 @@ plt.legend(["Transistors (thousands)",
bbox_to_anchor=(1.0, 1.0), bbox_to_anchor=(1.0, 1.0),
fontsize = "medium") fontsize = "medium")
plt.text(100, 100, "This is a text")
plt.text(0.805, 0.155, plt.text(0.805, 0.155,
"Original data up to the year 2010 collected and plotted by\nM. Horowitz, F. Labonte, O. Shacham, K. Olukotun, \nL. Hammond, and C. Batten.", "Original data up to the year 2010 collected and plotted by\nM. Horowitz, F. Labonte, O. Shacham, K. Olukotun, \nL. Hammond, and C. Batten.",
fontsize = "x-small", fontsize = "x-small",