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 <Sun...@nf...> 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:bob...@go...]
> Sent: Sun 11/30/2008 22:06
> To: mat...@li...
> 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
>
>
|