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 :)

Confused. Want wider, but not taller... but you are calling it the Y axis? Assuming you misspoke, will this do what you need? (There's a parallel method for the Y axis)

Sorry, yes I did mean the x-axis.

Thank you I will look into that now.

This changes my scale, but the actual graph is no bigger. My data ends up scrunched. How can I just make my graph just longer?

How about this, then? (You need to learn to use a web search engine). Check the top StackOverflow link

what the hell is a search engine

The big two are Google and Bing.