aboutsummaryrefslogtreecommitdiffstats
path: root/python/yieldcurve.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/yieldcurve.py')
-rw-r--r--python/yieldcurve.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/yieldcurve.py b/python/yieldcurve.py
index 6edcad2c..80f562b7 100644
--- a/python/yieldcurve.py
+++ b/python/yieldcurve.py
@@ -285,6 +285,8 @@ if __name__ == "__main__":
import matplotlib.pyplot as plt
from quantlib.time.api import calendar_from_name
+ from pandas.plotting import register_matplotlib_converters
+ register_matplotlib_converters()
helpers = rate_helpers("USD")
ts = YC(helpers)
cal = calendar_from_name('USA')