On Wednesday, March 9, 2011, Muffles <dantares...@gmail.com> wrote: > > > > Benjamin Root-2 wrote: >> >> >> Note that will not change the number of ticks already established for the >> axis. For that, you can use set_xticks(), which accepts a list of values >> where to set the tick marks (you should probably use set_xticklabels() >> after >> set_xticks()). Note that you will need to have access to the axes object. >> For example: >> >> >> import matplotlib.pyplot as plt >> >> fig = plt.figure() >> ax = fig.gca() # <--- the axes object I was talking about... >> ax.scatter([], []) >> ax.set_xticks([0.2, 0.4, 0.6, 0.8]) >> ax.set_xticklabels(['A', 'B', 'C', 'D']) >> plt.show() >> >> >> >> > > Well this just plots 2 different imagens now, one with only the axis, and > the other with the data and a default axis
Could you please include your code? My code was merely a demonstration and not meant to be copy and pasted in it's entirety. Ben Root ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users