implement the source files for plot the chromosome