Skip to content

Commit e22b9de

Browse files
committed
adjust within figure text to be in QuantEcon style
1 parent c5cb66e commit e22b9de

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lectures/inflation_history.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ax.set_ylabel('Index 1913 = 100')
105105
ax.set_xlim(xmin=1600)
106106
plt.tight_layout()
107107
fig.text(.5, .0001,
108-
"Price Levels", ha='center')
108+
"Price levels", ha='center')
109109
plt.show()
110110
```
111111

@@ -175,7 +175,7 @@ ax.set_xlim(xmin=1600)
175175
ax.set_ylim([10, 1e6])
176176
plt.tight_layout()
177177
fig.text(.5, .0001,
178-
"Logs of Price Levels", ha='center')
178+
"Logs of price levels", ha='center')
179179
plt.show()
180180
```
181181

@@ -305,8 +305,8 @@ def pe_plot(p_seq, e_seq, index, labs, ax):
305305
label.set_rotation(45)
306306
307307
# set labels
308-
ax.text(-0.08, 1.03, 'Price Level', transform=ax.transAxes)
309-
ax.text(0.92, 1.03, 'Exchange Rate', transform=ax.transAxes)
308+
ax.text(-0.08, 1.03, 'Price level', transform=ax.transAxes)
309+
ax.text(0.92, 1.03, 'Exchange rate', transform=ax.transAxes)
310310
311311
ax1.legend(loc='upper left')
312312
@@ -320,14 +320,14 @@ def pr_plot(p_seq, index, ax):
320320
321321
# graph for the difference of log p_seq
322322
ax.scatter(index[1:], log_diff_p,
323-
label='Monthly Inflation Rate',
323+
label='Monthly inflation rate',
324324
color='tab:grey')
325325
326326
# calculate and plot moving average
327327
diff_smooth = pd.DataFrame(log_diff_p).rolling(3, center=True).mean()
328328
ax.plot(index[1:], diff_smooth, label='Moving average (3 period)', alpha=0.5, lw=2)
329329
ax.text(-0.08, 1.03,
330-
'Monthly Inflation Rate',
330+
'Monthly inflation rate',
331331
transform=ax.transAxes)
332332
333333
ax.xaxis.set_major_locator(
@@ -411,7 +411,7 @@ mystnb:
411411
p_seq = df_Aus['Retail price index, 52 commodities']
412412
e_seq = df_Aus['Exchange Rate']
413413
414-
lab = ['Retail Price Index', 'Exchange Rate']
414+
lab = ['Retail price index', 'Exchange rate']
415415
416416
# create plot
417417
fig, ax = plt.subplots(dpi=200)
@@ -459,8 +459,8 @@ m_seq = df_Hung['Notes in circulation']
459459
p_seq = df_Hung['Hungarian index of prices']
460460
e_seq = 1 / df_Hung['Cents per crown in New York']
461461
462-
lab = ['Hungarian Index of Prices',
463-
'1/Cents per Crown in New York']
462+
lab = ['Hungarian index of prices',
463+
'1/cents per crown in New York']
464464
465465
# create plot
466466
fig, ax = plt.subplots(dpi=200)
@@ -528,8 +528,8 @@ e_seq[e_seq.index > '05-01-1924'] = np.nan
528528
```
529529

530530
```{code-cell} ipython3
531-
lab = ['Wholesale Price Index',
532-
'1/Cents per Polish Mark']
531+
lab = ['Wholesale price index',
532+
'1/cents per polish mark']
533533
534534
# create plot
535535
fig, ax = plt.subplots(dpi=200)
@@ -570,8 +570,8 @@ p_seq = df_Germ['Price index (on basis of marks before July 1924,'
570570
' reichsmarks after)'].copy()
571571
e_seq = 1/df_Germ['Cents per mark']
572572
573-
lab = ['Price Index',
574-
'1/Cents per Mark']
573+
lab = ['Price index',
574+
'1/cents per mark']
575575
576576
# create plot
577577
fig, ax = plt.subplots(dpi=200)
@@ -597,8 +597,8 @@ p_seq[p_seq.index > '06-01-1924'] = p_seq[p_seq.index
597597
e_seq[e_seq.index > '12-01-1923'] = e_seq[e_seq.index
598598
> '12-01-1923'] * 1e12
599599
600-
lab = ['Price Index (Marks or converted to Marks)',
601-
'1/Cents per Mark (or Reichsmark converted to Mark)']
600+
lab = ['Price index (marks or converted to marks)',
601+
'1/cents per mark (or reichsmark converted to mark)']
602602
603603
# create plot
604604
fig, ax = plt.subplots(dpi=200)

0 commit comments

Comments
 (0)