Thanks Sunnje, xlim worked perfectly, I was already using ylim to increase the y scale range to be up to 100 , never clicked to use the same for the dates.
Cheers On 11/30/08, Sunnje L Basedow <[EMAIL PROTECTED]> wrote: > Hi, > I'm also new to matplotlib and am still wrestling with my figures .... > Have you tried: > axis('tight') > but that will also affect the yaxis. > Or: > set_xlim(valmin, valmax) > Don't know if it works with date though. > Good luck! > Sünnje > > > > -----Original Message----- > From: Richard Martin [mailto:[EMAIL PROTECTED] > Sent: Sun 11/30/2008 22:06 > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] plot_date - extra values added that are not > inmy data > > Hello, > > I have been wrestling with matplotlib all evening (im completely new > to it since a few hours ago) and finally almost have my graph > finished. > > There is just one thing left that I can't seem to figure out myself. > I have attached the graph for reference (hope attachments are > allowed). > > It is a date plot, my data starts at 16:58:11 and ends at 17:25:14 but > for some reason I am being given ticks for a few minutes before and a > few minutes after. > > Is there some kind of compress, or trim function that I can use to get > rid of these and have the axis start at my first data point and end at > my last. Or at least the nearest major tick? > > Cheers > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users