Thursday, 8 January 2015

Some plots with matplotlib

I recently updated matplotlib and could finally use the style attribute from the updated module. I thought it might be a good time to plot some data and try it out.

In order to get a grasp on how some emerging markets have performed so far, I thought I could plot some data on the real GDP (GDP adjusted for inflation) and perhaps compare it to a big part of the EU’s economy (Germany).

The data I used is from Quandl a great source of data you should check it out https://www.quandl.com/

figure_1

gdp_growth

performance_relative_toGermany

Note: dotted lines indicates that the data is prospective (in this case obtained through linear regression).

Hope this was interesting

No comments:

Post a Comment