Tuesday, March 13, 2018

Plotting the blue channel intensity of a "Grumpy Cat" image....

This is not a really a "picture" - It is a intensity of the blue color intensity of a png file. It was plotted in 3d so gives a carving-like effect depending on the angle of view.

>> Python 3 code <<

Friday, March 9, 2018

Image effects using Python / Matplotlib

Original :                                                                                                                Result :

Very simple code :

>> Python 3 code <<

Wednesday, February 28, 2018

Playing with Matplotlib and PIL

Very small code :

Original photo (png file) :                                                                                       Result :

>> Python 3 code <<

Monday, February 26, 2018

Brazil Gdp and commodites exports correlations

Source : Bacen - Banco Central do Brasil
Period : Monthly, form 1995/01/01 to 2017/12/31
Names and Bacen codes :

  •    Gdp : Gross domestic product; BCB/4385
  •    Soy : Soybeans, including grinded;  BCB/2971
  •    Iron ore : Iron ore and concentrates; BCB/2966
  •    Cane : Cane sugar, raw; BCB/2975
  •    Coffee : Coffee, not roasted; BCB/2950
  •    Chicken : Meat and edible offal of chicken; BCB/2954
  •    Meat : Meat of bovine animals; BCB/2952

Thursday, February 22, 2018

Control of corruption estimate - South America

Definition from World Bank : "Control o corruption captures perceptions of the extent to which public power is exercised for private gain, including both petty and grand forms of corruption, as well as "capture" of the state by elites and private interests."

link to info.worldbank.org