Answers for "figure.subplots"

0

subplots matplotlib

fig, (ax1, ax2) = plt.subplots(2)
fig.suptitle('Vertically stacked subplots')
ax1.plot(x, y)
ax2.plot(x, -y)
#or
fig, (ax1, ax2) = plt.subplots(1,2) #in lines
Posted by: Guest on March-31-2021

Code answers related to "figure.subplots"

Python Answers by Framework

Browse Popular Code Answers by Language