Skip to content

Commit 33bc4e9

Browse files
committed
WIP: Try to embed generated image at top of tutorial.
1 parent 7b044f9 commit 33bc4e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/mooreslaw-tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ kernelspec:
1313
---
1414

1515
# Determining Moore's Law with real data in NumPy
16-
![Scatter plot of MOS transistor count per microprocessor every two years as a demonstration of Moore's Law.](_static/01-mooreslaw-tutorial-intro.png)
1716

18-
_The number of transistors reported per a given chip plotted on a log scale in the y axis with the date of introduction on the linear scale x-axis. The blue data points are from a [transistor count table](https://en.wikipedia.org/wiki/Transistor_count#Microprocessors). The red line is an ordinary least squares prediction and the orange line is Moore's law._
17+
![](#mooreslaw-mainfig)
1918

2019
## What you'll do
2120

@@ -287,6 +286,9 @@ The style sheet replicates
287286
[`plt.style.use`](https://matplotlib.org/api/style_api.html#matplotlib.style.use).
288287

289288
```{code-cell}
289+
:label: mooreslaw-mainfig
290+
:caption: A scatter plot of MOS transistor count per microprocessor every two years with a red line for the ordinary least squares prediction and an orange line for Moore's law.
291+
290292
transistor_count_predicted = np.exp(B) * np.exp(A * year)
291293
transistor_Moores_law = Moores_law(year)
292294
plt.style.use("fivethirtyeight")
@@ -305,8 +307,6 @@ plt.legend(loc="center left", bbox_to_anchor=(1, 0.5))
305307
plt.ylabel("# of transistors\nper microprocessor")
306308
```
307309

308-
_A scatter plot of MOS transistor count per microprocessor every two years with a red line for the ordinary least squares prediction and an orange line for Moore's law._
309-
310310
The linear regression captures the increase in the number of transistors
311311
per semiconductors each year. In 2015, semiconductor manufacturers
312312
claimed they could not keep up with Moore's law anymore. Your analysis

0 commit comments

Comments
 (0)