Plot colors fixed, views updated

Plotting histograms now works
Fixed flake8 error
Files checked with flake8
Added legend to pie charts