Hello Gentlepeople, I am plotting an integer array using: matplotlib.pyplot.plot(). For my purposes it is imperative that the x-axis 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 x-axis 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 x-axis 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 x-axis 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 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users