How do you change the size of figures drawn with matplotlib?
How do you change the size of figure drawn with matplotlib?
Nima M.
answered 11/16/19
Python / Java : Data Science, Machine Learning, Algorithm, OOP design
Try this:
from matplotlib import pyplot as plt
plt.figure(figsize=(1,1))
data_x = ...
data_y = ...
plt.plot(data_x, data_y)
plt.show()
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.