|
From: Sterling S. <sm...@fu...> - 2013-10-01 18:04:18
|
On Oct 1, 2013, at 11:01AM, Jody Klymak wrote: > > On Oct 1, 2013, at 10:55 AM, KURT PETERS <pet...@ms...> 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 |