Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
Source by matplotlib.org #
 
PREVIOUS NEXT
Tagged: #subplots #matplotlib
ADD COMMENT
Topic
Name
6+3 =