Im using Matplotlib, and plotting a basic line graph. I have an very large set of data and I need my Y-axis to be much bigger.
How do o make my graph much longer but not any taller? I found I can increase the overall graph size in proportion using the save function, but thats about it.
Heres a portion of my code:
x_data = range(0, len(self.hydro))
plt.figure()
plt.axhline(y=0, color='black')
plt.ylim(3, -3)
plt.plot(x_data, self.hydro, linewidth=1.0, label="hydrophobicity", color='r')
plt.plot(x_data, self.amphi, linewidth=1.0, label="amphipathicity", color='g')
#plt.legend()
plt.xlabel("Residue Number")
plt.ylabel("Value")
show()
Thanks a ton :)