I have two lists, same size, one is y_data and one is x_data x_data is a time hh:mm:ss during day, in fact each minute each serie is 1440 long.
problem is :
fig = Figure(figsize=(4,3))
a = gif.add_subplot(111)
a.plot(x_data, y_data)
give an unreadable x_axis (too many labels), if i reduce x_data to [range(24)] for instance, plot gives an error.
Question :
I'd like to have only 24 items on x_axis scale (each hour, so 1 item each 60 x_data points) is there a simple way to achieve this ? set_autoscale_on(False) and then manually setting limits seems a very complex way to achieve this (and I would loose the benefits from autoscaling on y axis). Another solution seems to involve a.xaxis.set_ticks() but i have to crate a new serie.
o I'd like to use x_data but just limit the number of ticks shown on x_axis, is there a way to do it ?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)