@@ -105,7 +105,7 @@ ax.set_ylabel('Index 1913 = 100')
105
105
ax.set_xlim(xmin=1600)
106
106
plt.tight_layout()
107
107
fig.text(.5, .0001,
108
- "Price Levels ", ha='center')
108
+ "Price levels ", ha='center')
109
109
plt.show()
110
110
```
111
111
@@ -175,7 +175,7 @@ ax.set_xlim(xmin=1600)
175
175
ax.set_ylim([10, 1e6])
176
176
plt.tight_layout()
177
177
fig.text(.5, .0001,
178
- "Logs of Price Levels ", ha='center')
178
+ "Logs of price levels ", ha='center')
179
179
plt.show()
180
180
```
181
181
@@ -305,8 +305,8 @@ def pe_plot(p_seq, e_seq, index, labs, ax):
305
305
label.set_rotation(45)
306
306
307
307
# 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)
310
310
311
311
ax1.legend(loc='upper left')
312
312
@@ -320,14 +320,14 @@ def pr_plot(p_seq, index, ax):
320
320
321
321
# graph for the difference of log p_seq
322
322
ax.scatter(index[1:], log_diff_p,
323
- label='Monthly Inflation Rate ',
323
+ label='Monthly inflation rate ',
324
324
color='tab:grey')
325
325
326
326
# calculate and plot moving average
327
327
diff_smooth = pd.DataFrame(log_diff_p).rolling(3, center=True).mean()
328
328
ax.plot(index[1:], diff_smooth, label='Moving average (3 period)', alpha=0.5, lw=2)
329
329
ax.text(-0.08, 1.03,
330
- 'Monthly Inflation Rate ',
330
+ 'Monthly inflation rate ',
331
331
transform=ax.transAxes)
332
332
333
333
ax.xaxis.set_major_locator(
@@ -411,7 +411,7 @@ mystnb:
411
411
p_seq = df_Aus['Retail price index, 52 commodities']
412
412
e_seq = df_Aus['Exchange Rate']
413
413
414
- lab = ['Retail Price Index ', 'Exchange Rate ']
414
+ lab = ['Retail price index ', 'Exchange rate ']
415
415
416
416
# create plot
417
417
fig, ax = plt.subplots(dpi=200)
@@ -459,8 +459,8 @@ m_seq = df_Hung['Notes in circulation']
459
459
p_seq = df_Hung['Hungarian index of prices']
460
460
e_seq = 1 / df_Hung['Cents per crown in New York']
461
461
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']
464
464
465
465
# create plot
466
466
fig, ax = plt.subplots(dpi=200)
@@ -528,8 +528,8 @@ e_seq[e_seq.index > '05-01-1924'] = np.nan
528
528
```
529
529
530
530
``` {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 ']
533
533
534
534
# create plot
535
535
fig, ax = plt.subplots(dpi=200)
@@ -570,8 +570,8 @@ p_seq = df_Germ['Price index (on basis of marks before July 1924,'
570
570
' reichsmarks after)'].copy()
571
571
e_seq = 1/df_Germ['Cents per mark']
572
572
573
- lab = ['Price Index ',
574
- '1/Cents per Mark ']
573
+ lab = ['Price index ',
574
+ '1/cents per mark ']
575
575
576
576
# create plot
577
577
fig, ax = plt.subplots(dpi=200)
@@ -597,8 +597,8 @@ p_seq[p_seq.index > '06-01-1924'] = p_seq[p_seq.index
597
597
e_seq[e_seq.index > '12-01-1923'] = e_seq[e_seq.index
598
598
> '12-01-1923'] * 1e12
599
599
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 )']
602
602
603
603
# create plot
604
604
fig, ax = plt.subplots(dpi=200)
0 commit comments