I would like to move the Y-Axis a bit higher and not intersect with the X-Axis.. This is how it currently looks..
This is how I want it to look like:
This is the code I have written for that.
fig = plt.figure()
ax = fig.add_subplot(111)
fig = matplotlib.pyplot.gcf()
fig.set_size_inches(6.0,3.0)
t = 100
kde = gaussian_kde(hurry)
dist_space_hurry = linspace( min(hurry), max(hurry), t )
ax.plot( dist_space_hurry, kde(dist_space_hurry), color='r', label='Hurry-up', linewidth=1.5)
kde_faban = gaussian_kde(faban_data)
faban_dist_space = linspace( min(faban_data), max(faban_data), t )
ax.plot( faban_dist_space, kde_faban(faban_dist_space) , color='g', label = 'Faban', linewidth=2)
ax.legend(loc='upper center', ncol=1, framealpha=0, bbox_to_anchor=(0.7, .95), fancybox=True)#, fontsize=8)
ax.xaxis.set_ticks_position('bottom')
ax.yaxis.set_ticks_position('left')
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)