Fixed plotting code to work with X as copy number