non-numeric data

Friends,

Kindly see the attached small test.dat file. I have make a plot with this data. But my data does nt have numerical values but has characters like B, T etc. So i hve give color codings for these characters and plot the data. Like use yellow for B, red for T etc. Kindly help me to do it with matplotlib.

Thanks,
Bala

test.dat (2.1 KB)