Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def main():
  2. nrows = 2
  3. fig, axes = plt.subplots(nrows, 2)
  4.  
  5. for row in axes:
  6. x = [1,2,3,4]
  7. y = [1,2,3,4]
  8. plot(row, x, y)
  9.  
  10. plt.show()
  11.  
  12. def plot(axrow, x, y):
  13. axrow[0].plot(x, color='red')
  14. axrow[1].plot(y, color='green')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement