finalized scatterbar and pplot