Feb-02-2018, 10:42 PM
hi, I'm trying to figure out how to change the size of the graph that matplotlib is giving me, but I cant quite figure out how. I want to add some GUI using tkinter that will manipulate the drawn graph. I've tried this:
but it seems just to change the window size. here is part of the code I'm using:
fig = plt.gcf() fig.set_size_inches(8.5, 1.5)
but it seems just to change the window size. here is part of the code I'm using:
Y = [[]] X = [[]] def plot(ite): plt.plot(X[ite], Y[ite], label = (str(ite))) for i in range(0,3): plot(i) plt.legend() plt.show()I'm not sure what and how I need to add to resize the graph