B
B
Babamurat2020-05-16 23:51:30
Python
Babamurat, 2020-05-16 23:51:30

How to set the window size yourself in matplotlib.pyplot as plt plt.show()?

When showing a plot in plt.show() always by default with a given window size, shows the plot
How do I set the window size of matplotlib.pyplot.show() ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Tropanets, 2020-05-17
@Babamurat

plt.figure(figsize=(10,10))
plt.plot(x,y)
plt.show()

in figsize specify the size in inches

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question