@@ -57,9 +57,9 @@ We start by installing a library we will use followed by importing some Python m
57
57
``` {code-cell} ipython3
58
58
import numpy as np
59
59
import pandas as pd
60
- import matplotlib
61
- matplotlib.rcParams['figure.figsize'] = (13, 7)
62
60
import matplotlib.pyplot as plt
61
+ plt.matplotlib.rcParams['figure.figsize'] = (12,8)
62
+ plt.rcParams.update({'font.size': 19})
63
63
import matplotlib.dates as mdates
64
64
```
65
65
@@ -417,10 +417,6 @@ lab = ['Retail Price Index', 'Exchange Rate']
417
417
fig, ax = plt.subplots(dpi=200)
418
418
_ = pe_plot(p_seq, e_seq, df_Aus.index, lab, ax)
419
419
420
- # connect disjunct parts
421
- plt.figtext(0.5, -0.02, 'Austria',
422
- horizontalalignment='center',
423
- fontsize=12)
424
420
plt.show()
425
421
```
426
422
@@ -435,9 +431,6 @@ mystnb:
435
431
fig, ax = plt.subplots(dpi=200)
436
432
_ = pr_plot(p_seq, df_Aus.index, ax)
437
433
438
- plt.figtext(0.5, -0.02, 'Austria',
439
- horizontalalignment='center',
440
- fontsize=12)
441
434
plt.show()
442
435
```
443
436
@@ -473,9 +466,6 @@ lab = ['Hungarian Index of Prices',
473
466
fig, ax = plt.subplots(dpi=200)
474
467
_ = pe_plot(p_seq, e_seq, df_Hung.index, lab, ax)
475
468
476
- plt.figtext(0.5, -0.02, 'Hungary',
477
- horizontalalignment='center',
478
- fontsize=12)
479
469
plt.show()
480
470
```
481
471
@@ -490,9 +480,6 @@ mystnb:
490
480
fig, ax = plt.subplots(dpi=200)
491
481
_ = pr_plot(p_seq, df_Hung.index, ax)
492
482
493
- plt.figtext(0.5, -0.02, 'Hungary',
494
- horizontalalignment='center',
495
- fontsize=12)
496
483
plt.show()
497
484
```
498
485
@@ -514,6 +501,7 @@ mystnb:
514
501
figure:
515
502
caption: "Price index and exchange rate (Poland)"
516
503
name: pi_xrate_poland
504
+ scale: 95%
517
505
---
518
506
# splice three price series in different units
519
507
p_seq1 = df_Pol['Wholesale price index'].copy()
@@ -548,9 +536,6 @@ lab = ['Wholesale Price Index',
548
536
fig, ax = plt.subplots(dpi=200)
549
537
ax1 = pe_plot(p_seq, e_seq, df_Pol.index, lab, ax)
550
538
551
- plt.figtext(0.5, -0.02, 'Poland',
552
- horizontalalignment='center',
553
- fontsize=12)
554
539
plt.show()
555
540
```
556
541
@@ -560,14 +545,12 @@ mystnb:
560
545
figure:
561
546
caption: "Monthly inflation rate (Poland)"
562
547
name: inflationrate_poland
548
+ scale: 95%
563
549
---
564
550
# plot moving average
565
551
fig, ax = plt.subplots(dpi=200)
566
552
_ = pr_plot(p_seq, df_Pol.index, ax)
567
553
568
- plt.figtext(0.5, -0.02, 'Poland',
569
- horizontalalignment='center',
570
- fontsize=12)
571
554
plt.show()
572
555
```
573
556
@@ -596,9 +579,6 @@ lab = ['Price Index',
596
579
fig, ax = plt.subplots(dpi=200)
597
580
ax1 = pe_plot(p_seq, e_seq, df_Germ.index, lab, ax)
598
581
599
- plt.figtext(0.5, -0.06, 'Germany',
600
- horizontalalignment='center',
601
- fontsize=12)
602
582
plt.show()
603
583
```
604
584
@@ -626,9 +606,6 @@ lab = ['Price Index (Marks or converted to Marks)',
626
606
fig, ax = plt.subplots(dpi=200)
627
607
ax1 = pe_plot(p_seq, e_seq, df_Germ.index, lab, ax)
628
608
629
- plt.figtext(0.5, -0.02, 'Germany',
630
- horizontalalignment='center',
631
- fontsize=12)
632
609
plt.show()
633
610
```
634
611
@@ -643,9 +620,6 @@ mystnb:
643
620
fig, ax = plt.subplots(dpi=200)
644
621
_ = pr_plot(p_seq, df_Germ.index, ax)
645
622
646
- plt.figtext(0.5, -0.02, 'Germany',
647
- horizontalalignment='center',
648
- fontsize=12)
649
623
plt.show()
650
624
```
651
625
0 commit comments