Guest User

Untitled

a guest
Nov 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. fig, (ax,ax2)=pl.figure(figsize=(10,5))
  2. ax.plot(x,y1,color='darkgreen',label='test 1')
  3. ax.plot(x,y2,color='lightgreen',label='test 2')
  4. ax.plot(x,y3,color='mediumseagreen',label='test 3')
  5. ax.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,
  6. ncol=4, mode="expand", borderaxespad=0.0,framealpha=0.0)
  7.  
  8. ax2=ax.twinx()
  9. ax2.plot(x,y,color='b',marker='.',label='Add to primary legend')
Add Comment
Please, Sign In to add comment