On Oct 1, 2013, at 11:01AM, Jody Klymak wrote: > > On Oct 1, 2013, at 10:55 AM, KURT PETERS <petersk...@msn.com> wrote: > >> Goyo, >> Thanks, the code below seems to work. The problem is that with >> "REAL/actual" data, I have SO many data points that each point is now >> labeled and it takes forever to render. And when it does render, I cannot >> read the axis because there are too many there. Is there a way to >> judiciously have it only display a certain number of values? Such as every >> 100th value? >> Kurt >> >> ax2.set_xticks(xdat) >> ax2.set_xticklabels(simtimedata) > > ax2.set_xticks(xdat[::100]) > ax2.set_xticklabels(simtimedata[::100]) > > Cheers, Jody > I thought that, too, but then he used the word 'judiciously'. I think that you want to change the xaxis major formatter so that it returns the indexed element of simtimedata as the label. Example to come in a moment. -Sterling
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users