Recently I updated matplot lib version to 2.1.0 as per the requirement. After the execution of code it throws an error :
AttributeError: module \'matplotlib.rcset