Re: [Tutor] matplotlib question - Dates not showing up on X axis

2012-11-05 Thread eryksun
On Mon, Nov 5, 2012 at 12:42 PM, jim schmidt wrote: > > fig = figure() > > ax = fig.add_subplot(1,1,1) > ax.plot_date(dates, kbSec, '-') > > ax.xaxis.set_major_locator(WeekdayLocator(byweekday=MO)) > ax.xaxis.set_major_formatter(DateFormatter('%m-%d')) > fig.autofmt_xdate()

Re: [Tutor] matplotlib question - Dates not showing up on X axis

2012-11-05 Thread Steven D'Aprano
On 06/11/12 04:42, jim schmidt wrote: import website as website What's website? When I try it, I get an error. py> import website as website Traceback (most recent call last): File "", line 1, in ImportError: No module named website By the way, there's no need to say "import X as X". Just