May-26-2019, 04:05 PM
Hi Yoriz,
this part of the code seems to be the problem"
Let me please know if additional info are needed.
this part of the code seems to be the problem"
y = [mov_index(position1, position1+10), mov_index(position2, position2+10), mov_index(position3, position3+10)] x = [CEU_times[position1] + datetime.timedelta(days=i) for i in range(len(y))] ax = plt.subplot(111) ax.bar(x, y, width=5) ax.xaxis_date() plt.setp(ax.get_xticklabels(), rotation=45, fontsize=10) plt.show()If I try to change the width of the bar, that seems to change the format of the date I see on the graph.I want to be able to see year-month-date instead of month-date-hour, and I want the x-axis to be separated by hours (for a better Idea if what I mean, kindly refer to the link http://ctr.maths.lu.se/na/courses/NUMA01.../birds.pdf). So far, the only way for me to be able to see the dates in the right format, is to keep the width of the bars to a minimum of 5, which is too much if I want them to be separated and have a better picture. If I lower that 5, the date format in the graph immediately changes to month-day-hour.
Let me please know if additional info are needed.