From 33bc4e9f8a10506aa1c612e9eb5bd94e84643ee9 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 8 Dec 2025 21:31:16 -0800 Subject: [PATCH 1/3] WIP: Try to embed generated image at top of tutorial. --- content/mooreslaw-tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/mooreslaw-tutorial.md b/content/mooreslaw-tutorial.md index 638853c4..6195b28d 100644 --- a/content/mooreslaw-tutorial.md +++ b/content/mooreslaw-tutorial.md @@ -13,9 +13,8 @@ kernelspec: --- # Determining Moore's Law with real data in NumPy -![Scatter plot of MOS transistor count per microprocessor every two years as a demonstration of Moore's Law.](_static/01-mooreslaw-tutorial-intro.png) -_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._ +![](#mooreslaw-mainfig) ## What you'll do @@ -287,6 +286,9 @@ The style sheet replicates [`plt.style.use`](https://matplotlib.org/api/style_api.html#matplotlib.style.use). ```{code-cell} +:label: mooreslaw-mainfig +: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. + transistor_count_predicted = np.exp(B) * np.exp(A * year) transistor_Moores_law = Moores_law(year) plt.style.use("fivethirtyeight") @@ -305,8 +307,6 @@ plt.legend(loc="center left", bbox_to_anchor=(1, 0.5)) plt.ylabel("# of transistors\nper microprocessor") ``` -_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._ - The linear regression captures the increase in the number of transistors per semiconductors each year. In 2015, semiconductor manufacturers claimed they could not keep up with Moore's law anymore. Your analysis From f613a3a7e232ee2aed2b42e7c8c9aeef5cb6bf42 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 8 Dec 2025 21:37:21 -0800 Subject: [PATCH 2/3] WIP: Try adding img meta to label name. --- content/mooreslaw-tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/mooreslaw-tutorial.md b/content/mooreslaw-tutorial.md index 6195b28d..d8d76da6 100644 --- a/content/mooreslaw-tutorial.md +++ b/content/mooreslaw-tutorial.md @@ -14,7 +14,7 @@ kernelspec: # Determining Moore's Law with real data in NumPy -![](#mooreslaw-mainfig) +![](#img:mooreslaw-mainfig) ## What you'll do @@ -286,7 +286,7 @@ The style sheet replicates [`plt.style.use`](https://matplotlib.org/api/style_api.html#matplotlib.style.use). ```{code-cell} -:label: mooreslaw-mainfig +:label: img:mooreslaw-mainfig :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. transistor_count_predicted = np.exp(B) * np.exp(A * year) From d67ba9bea744bcf2eafa84e6275503c7654355df Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 8 Dec 2025 23:01:17 -0800 Subject: [PATCH 3/3] WIP: Try removing caption. --- content/mooreslaw-tutorial.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/mooreslaw-tutorial.md b/content/mooreslaw-tutorial.md index d8d76da6..5f2c7e7e 100644 --- a/content/mooreslaw-tutorial.md +++ b/content/mooreslaw-tutorial.md @@ -287,7 +287,6 @@ The style sheet replicates ```{code-cell} :label: img:mooreslaw-mainfig -: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. transistor_count_predicted = np.exp(B) * np.exp(A * year) transistor_Moores_law = Moores_law(year)