Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
* Change code comment for Matplotlib font family and size.
* Add sentence about notebook style where missing.
* Capitalize the labels in the legend (and re-run the Notebooks).
  • Loading branch information
mesnardo committed Aug 24, 2018
1 parent d7947b2 commit 0ef33fc
Show file tree
Hide file tree
Showing 22 changed files with 1,845 additions and 1,852 deletions.
8 changes: 4 additions & 4 deletions lessons/01_phugoid/01_02_Phugoid_Oscillation.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lessons/01_phugoid/01_03_PhugoidFullModel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set size of type of the font to use for Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/01_phugoid/01_04_Second_Order_Methods.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/01_phugoid/phugoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def plot_flight_path(zt, z0, theta0, N=1000):
x[i], z[i] = rotate((x[i - 1], z[i - 1]),
center=center, angle=dtheta, mode='radians')
theta += dtheta
# Set type and size of font for Matplotlib figures.
# Set the font family and size to use for Matplotlib figures.
pyplot.rcParams['font.family'] = 'serif'
pyplot.rcParams['font.size'] = 16
# Create Matplotlib figure.
Expand Down
10 changes: 5 additions & 5 deletions lessons/02_spacetime/02_01_1DConvection.ipynb

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions lessons/02_spacetime/02_02_CFLCondition.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lessons/02_spacetime/02_03_1DDiffusion.ipynb

Large diffs are not rendered by default.

3,604 changes: 1,796 additions & 1,808 deletions lessons/02_spacetime/02_04_1DBurgers.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lessons/03_wave/03_01_conservationLaw.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/03_wave/03_02_convectionSchemes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/03_wave/03_03_aBetterModel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/03_wave/03_04_MUSCL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/04_spreadout/04_01_Heat_Equation_1D_Explicit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/04_spreadout/04_02_Heat_Equation_1D_Implicit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/04_spreadout/04_03_Heat_Equation_2D_Explicit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/04_spreadout/04_04_Heat_Equation_2D_Implicit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
2 changes: 1 addition & 1 deletion lessons/04_spreadout/04_05_Crank-Nicolson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down
5 changes: 3 additions & 2 deletions lessons/05_relax/05_01_2D.Laplace.Equation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down Expand Up @@ -1011,7 +1011,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"---"
"---\n",
"###### The cell below loads the style of the notebook"
]
},
{
Expand Down
11 changes: 6 additions & 5 deletions lessons/05_relax/05_02_2D.Poisson.Equation.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lessons/05_relax/05_03_Iterate.This.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set the type and size of the font to use in Matplotlib figures.\n",
"# Set the font family and size to use for Matplotlib figures.\n",
"pyplot.rcParams['font.family'] = 'serif'\n",
"pyplot.rcParams['font.size'] = 16"
]
Expand Down Expand Up @@ -1294,7 +1294,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"---"
"---\n",
"###### The cell below loads the style of this notebook."
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion lessons/05_relax/05_04_Conjugate.Gradient.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"---"
"---\n",
"###### The cell below loads the style of this notebook."
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion lessons/05_relax/05_05_Stokes.Flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"---"
"---\n",
"###### The cell below loads the style of this notebook."
]
},
{
Expand Down

0 comments on commit 0ef33fc

Please sign in to comment.