Skip to content

Commit 48ad11b

Browse files
authored
[geom_series] Review figure sizes (#11)
* test control of output image size * use latex output for math * see if latex function returns LaTeX mime type * show tex with mathjax * remove latex translation for first box * set default figure size
1 parent e25e32c commit 48ad11b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lectures/geom_series.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ These and other applications prove the truth of the wise crack that
4949
Below we'll use the following imports:
5050

5151
```{code-cell} ipython
52-
import matplotlib.pyplot as plt
5352
%matplotlib inline
53+
import matplotlib.pyplot as plt
54+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5455
import numpy as np
5556
import sympy as sym
56-
from sympy import init_printing
57+
from sympy import init_printing, latex
5758
from matplotlib import cm
5859
from mpl_toolkits.mplot3d import Axes3D
5960
```
@@ -808,7 +809,7 @@ g, r, x0 = sym.symbols('g, r, x0')
808809
G = (1 + g)
809810
R = (1 + r)
810811
p0 = x0 / (1 - G * R**(-1))
811-
init_printing()
812+
init_printing(use_latex='mathjax')
812813
print('Our formula is:')
813814
p0
814815
```

0 commit comments

Comments
 (0)