Analyse json file based on matplotlib