Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

matplotlib plot in second axis

fig,ax = plt.subplots()
ax.plot(y1)
ax2=ax.twinx()
ax2.plot(y2)
plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #matplotlib #plot #axis
ADD COMMENT
Topic
Name
4+4 =