Re: [Matplotlib-users] bar plot (autofmt_xdate and left-right margins )

2012-04-01 Thread Massimo Di Stefano
i modified the code as follow : def bar_plot(data, Yval, datamin=None, datamax=None): """ doc """ x = data[0] y = data[1] # reduce dataset based on min max date if datamin != datamax != None : x = data[0][np.where((data[0]>=datamin) & (data[0]<=datamax))[0]] y

[Matplotlib-users] bar plot (autofmt_xdate and left-right margins )

2012-03-31 Thread Massimo Di Stefano
Hi All i'm bring to do simple bar plot formatting the xlabe as 'date' using a syntax like : fig.autofmt_xdate(bottom=0.1) but something is wrong in my code, please have you any hints on ghow to proper display the dates (Year) along the x axis and how to leave a margin on the left and on the