fixed the metallcity plotting function