Answers for "this figure includes axes that are not compatible with tight_layout, so results might be incorrect"

0

this figure includes axes that are not compatible with tight_layout, so results might be incorrect

fig, ax = plt.subplots()
fig.set_tight_layout(False)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
ax.plot(X,C)
ax.plot(X,S)
plt.show()
Posted by: Guest on July-05-2021

Code answers related to "this figure includes axes that are not compatible with tight_layout, so results might be incorrect"

Python Answers by Framework

Browse Popular Code Answers by Language