From: Lionel (Lee) Brooks 3rd <Lionel.B<rooks@da...>  20110125 01:12:45

Hello Gentlepeople, I am plotting an integer array using: matplotlib.pyplot.plot(). For my purposes it is imperative that the xaxis be explicitly defined. I have tried to achieve this by using: matplotlib.pyplot.axis(v). Where v is a list of integer values corresponding to the desired axes limits [xmin, xmax, ymin, ymax]. However, the xaxis that is displayed does not obey my explicit xmax declaration; the value is rounded up. Here is the relevant portion of my code: fig = pyplot.figure(figsize=(16,8)) ax1 = fig.add_axes([0.05, 0.15, 0.9, 0.8]) v = [0, len(myintvector), 0, max(myintvector, key=int)] ax1.axis(v) ax1.plot(myintvector, 'r') The reason that I need the xaxis to match the length of my integer vector is because I am also drawing a colorbar immediately below the plot, the values of which describe the same integer vector. Therefore I need the colorbar coordinates to match the xaxis coordinates of my plot. I hope that I have described my issue coherently. Please be kind (N00b alert). Any help is greatly appreciated! Sincerely, Lionel 'Lee' Brooks 3rd Dartmouth Genetics Grad Student 