I have a small set of data covering the length of time it takes to carry out a task;
Model A min time 5:40 max time 5:49
Model B min time 36:37 max time 37:12
Model C min time 18:56 max time 20:18
Model D min time 5:57 max time 6:34
The code I intend to use to display this data will be as follows:
def show_performance_stats(df):
sns.set(style='darkgrid')
sns.set(font_scale=1)
plt.rcParams["figure.figsize"] = (6.5,4)
plt.plot(df['MinTime'], 'bo', label="Min Time")
plt.plot(df['MaxTime'], 'go', label="Max Time")
# Label the plot.
plt.title("Performace for each category")
plt.ylabel("Time")
plt.legend()
plt.xticks([0, 1, 2, 3], df['Models'])
plt.yticks([0, 10, 20, 30, 40])
chart = Chart.get_graph_file("Performance")
plt.savefig(chart)
plt.close() # Use close to ensure plt is reset for future use
I have not run this code yet. I want to know how to represent time in this graph, bearing in mind that minutes and seconds scale to 60 rather than 100?