RogerI 0 Newbie Poster

Hi there,

I would be very appreciative if someone could help me get my plots to work. I am plotting a y-variable against time, but on the x-axis the time tickmarks labels overlap. I have tried using the autofmt_xdate but it does not solve this problem in this case - see code below.

Any hints on how to proceed would be welcome because I'm stuck.

for l in range(len(takeoff)):
    #PLOT
    xv=xdatetime[takeoff[l]:landing[l]]
    yv=x['Dose_Equ.'][takeoff[l]:landing[l]]
    fig=pylab.figure(facecolor='w')   
    ax=fig.add_subplot(111)
    fig.autofmt_xdate(rotation=90, ha='right')
    ax.plot_date(xv,yv,'-',color='blue')

Many thanks, Roger

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.