Been trying to make a plot, but the output is a mess and there seems to be no problem with the code. Can anyone help explain this?
x = np.random.rand(10) y = np.sin(x) fig, ax = plt.subplots(111) ax[0].plot(x, y) plt.show() fig.savefig("1.png") https://stackoverflow.com/questions/65913174/matplotlib-figure-output-in-a-mess January 27, 2021 at 01:08PM
没有评论:
发表评论