added matplolib plot and heatmap