@@ -90,7 +90,7 @@ w_range = np.linspace(1e-2, 1-1e-5, 1000)
9090
9191plt.plot(w_range, g(w_range), label='g')
9292plt.plot(w_range, f(w_range), label='f')
93- plt.xlabel('$\omega$')
93+ plt.xlabel(r '$\omega$')
9494plt.legend()
9595plt.title('density functions $f$ and $g$')
9696plt.show()
@@ -104,8 +104,8 @@ l = jit(lambda w: f(w) / g(w))
104104
105105``` {code-cell} ipython3
106106plt.plot(w_range, l(w_range))
107- plt.title('$\ell(\omega)$')
108- plt.xlabel('$\omega$')
107+ plt.title(r '$\ell(\omega)$')
108+ plt.xlabel(r '$\omega$')
109109plt.show()
110110```
111111
@@ -314,7 +314,7 @@ for i, t in enumerate([1, 5, 10, 20]):
314314 for n, bins, μ_hat, σ_hat in [[n_p, bins_p, μ_hat_p, σ_hat_p],
315315 [n_q, bins_q, μ_hat_q, σ_hat_q]]:
316316 idx = np.argmax(n)
317- axs[row, col].text(bins[idx], n[idx], '$\hat{μ}$='+f'{μ_hat:.4g}'+', $\hat{σ}=$'+f'{σ_hat:.4g}')
317+ axs[row, col].text(bins[idx], n[idx], r '$\hat{μ}$='+f'{μ_hat:.4g}'+r ', $\hat{σ}=$'+f'{σ_hat:.4g}')
318318
319319plt.show()
320320```
@@ -418,7 +418,7 @@ for i, t in enumerate([1, 20]):
418418 for n, bins, μ_hat, σ_hat in [[n_p, bins_p, μ_hat_p, σ_hat_p],
419419 [n_q, bins_q, μ_hat_q, σ_hat_q]]:
420420 idx = np.argmax(n)
421- axs[i].text(bins[idx], n[idx], '$\hat{μ}$='+f'{μ_hat:.4g}'+', $\hat{σ}=$'+f'{σ_hat:.4g}')
421+ axs[i].text(bins[idx], n[idx], r '$\hat{μ}$='+f'{μ_hat:.4g}'+r ', $\hat{σ}=$'+f'{σ_hat:.4g}')
422422
423423plt.show()
424424```
@@ -452,7 +452,7 @@ for i, t in enumerate([1, 20]):
452452 for n, bins, μ_hat, σ_hat in [[n_p, bins_p, μ_hat_p, σ_hat_p],
453453 [n_q, bins_q, μ_hat_q, σ_hat_q]]:
454454 idx = np.argmax(n)
455- axs[i].text(bins[idx], n[idx], '$\hat{μ}$='+f'{μ_hat:.4g}'+', $\hat{σ}=$'+f'{σ_hat:.4g}')
455+ axs[i].text(bins[idx], n[idx], r '$\hat{μ}$='+f'{μ_hat:.4g}'+r ', $\hat{σ}=$'+f'{σ_hat:.4g}')
456456
457457plt.show()
458458```
0 commit comments