File:CnbRepoRate.svg

Original file(SVG file, nominally 768 × 432 pixels, file size: 73 KB)

Captions

Captions

Czech National Bank - repo rate

Summary edit

Description
English: Czech National Bank - repo rate, plotted using the Python code from Plotting code section.
Date
Source Own work
Author Dan Polansky

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Plotting code edit

from matplotlib import pyplot as plt
import datetime
inputData = [
  # From https://www.cnb.cz/cs/casto-kladene-dotazy/Jak-se-vyvijela-dvoutydenni-repo-sazba-CNB/
  "8.12.1995:11.30",
  "29.3.1996:11.50",
  "29.4.1996:11.60",
  "9.5.1996:11.80",
  "21.6.1996:12.40",
  "4.6.1997:39.00",
  "11.6.1997:29.00",
  "18.6.1997:25.00",
  "20.6.1997:22.00",
  "23.6.1997:20.00",
  "24.6.1997:18.50",
  "30.6.1997:18.20",
  "1.7.1997:17.90",
  "7.7.1997:17.00",
  "8.7.1997:16.50",
  "9.7.1997:16.20",
  "16.7.1997:16.00",
  "22.7.1997:15.70",
  "23.7.1997:15.40",
  "24.7.1997:15.20",
  "28.7.1997:14.90",
  "1.8.1997:14.70",
  "4.8.1997:14.50",
  "31.10.1997:14.80",
  "1.12.1997:18.50",
  "2.12.1997:18.00",
  "3.12.1997:17.50",
  "4.12.1997:16.75",
  "9.12.1997:15.50",
  "10.12.1997:15.00",
  "17.12.1997:14.75",
  "20.3.1998:15.00",
  "17.7.1998:14.50",
  "14.8.1998:14.00",
  "25.9.1998:13.50",
  "27.10.1998:12.50",
  "13.11.1998:11.50",
  "4.12.1998:10.50",
  "23.12.1998:9.50",
  "18.1.1999:8.75",
  "29.1.1999:8.00",
  "12.3.1999:7.50",
  "9.4.1999:7.20",
  "4.5.1999:6.90",
  "25.6.1999:6.50",
  "30.7.1999:6.25",
  "3.9.1999:6.00",
  "5.10.1999:5.75",
  "27.10.1999:5.50",
  "26.11.1999:5.25",
  "23.2.2001:5.00",
  "27.7.2001:5.25",
  "30.11.2001:4.75",
  "22.1.2002:4.50",
  "1.2.2002:4.25",
  "26.4.2002:3.75",
  "26.7.2002:3.00",
  "1.11.2002:2.75",
  "31.1.2003:2.50",
  "26.6.2003:2.25",
  "1.8.2003:2.00",
  "25.6.2004:2.25",
  "27.8.2004:2.50",
  "28.1.2005:2.25",
  "1.4.2005:2.00",
  "29.4.2005:1.75",
  "31.10.2005:2.00",
  "28.7.2006:2.25",
  "29.9.2006:2.50",
  "1.6.2007:2.75",
  "27.7.2007:3.00",
  "31.8.2007:3.25",
  "30.11.2007:3.50",
  "8.2.2008:3.75",
  "8.8.2008:3.50",
  "7.11.2008:2.75",
  "18.12.2008:2.25",
  "6.2.2009:1.75",
  "11.5.2009:1.50",
  "7.8.2009:1.25",
  "17.12.2009:1.00",
  "7.5.2010:0.75",
  "29.6.2012:0.50",
  "1.10.2012:0.25",
  "2.11.2012:0.05",
  "4.8.2017:0.25",
  "3.11.2017:0.50",
  "2.2.2018:0.75",
  "28.6.2018:1.00",
  "3.8.2018:1.25",
  "27.9.2018:1.50",
  "2.11.2018:1.75",
  "3.5.2019:2.00",
  "7.2.2020:2.25",
  "17.3.2020:1.75",
  "27.3.2020:1.00",
  "11.5.2020:0.25",
  "24.6.2021:0.50",
  "6.8.2021:0.75",
  "1.10.2021:1.50",
  "5.11.2021:2.75",
  "23.12.2021:3.75",
  "4.2.2022:4.50",
  "1.4.2022:5.00",
  "6.5.2022:5.75",
  "23.6.2022:7.00",
  "22.12.2023:6.75",
  "9.2.2024:6.25",
  "21.3.2024:5.75"]

dates = []
rates = []
for dataRowStr in inputData:
  dataRow = dataRowStr.split(":")
  date = datetime.datetime.strptime(dataRow[0], "%d.%m.%Y").date()
  repoRate = float(dataRow[1])
  dates.append(date)
  rates.append(repoRate)

fig, biax = plt.subplots()
figSize = fig.get_size_inches()#_
fig.set_size_inches(figSize[0] * 4/3, figSize[1])
biax.set(xlabel="Date (label on 1 January)", ylabel="Interest rate",
         title="Czech National Bank - repo rate")
years = sorted({date.year for date in dates})
years = range(years[0], years[-1] + 1)
xtickDates, xtickDatesStr = [], []
for idx, year in enumerate(years):
  date = datetime.datetime.strptime("1 Jan " + str(year), "%d %b %Y").date()
  xtickDates.append(date)
  xtickDatesStr.append(str(date.year))
plt.xticks(xtickDates, xtickDatesStr, rotation=70)
plt.plot(dates, rates, "o-", color="#6699CC", markersize="3")
plt.grid(linewidth=0.25, color="#CCCCCC")
biax.set_yticklabels(['{:.1f}%'.format(x) for x in biax.get_yticks()])
plt.tight_layout()
plt.savefig("CnbRepoRate.svg")

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:57, 10 April 2024Thumbnail for version as of 17:57, 10 April 2024768 × 432 (73 KB)Dan Polansky (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata