this is the code for asking user to input their datetime:
startTime = datetime.strptime(raw_input('please enter start time in format like 21/7/2014 0:00 :'), '%d/%m/%Y %H:%M')
endTime = datetime.strptime(raw_input('please enter end time in format like 22/7/2014 23:57 :') , '%d/%m/%Y %H:%M')
how do i display the user input as my graph title along side with other info
this is my graph title code:
plt.title('Max Value: {:.2f} at {}, Mode: {:.2f}, Average: {:.2f})'.format(max(y), t[np.argmax(y)], mode(y)[0][0], np.average(y)))
i tried this but it didn't work:
plt.title('Irradiance vs Time Graph at startTime to endTime \n Max Value: {:.2f} at {}, Mode: {:.2f}, Average: {:.2f})'startTime, endTime, .format(max(y), t[np.argmax(y)], mode(y)[0][0], np.average(y)))
Thanks in advance