Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- y = np.linspace(0,1,1000)
- x1 = np.sin( 2.5*np.pi*y - 0.3 )
- x2 = -x1
- fig = plt.figure(figsize=[3,6])
- ax1 = fig.add_subplot(111)
- ax1.grid(b=False)
- plt.axis('off')
- plt.xlim( [-1.2,1.2] )
- plt.plot( x1, y, color='b' )
- plt.plot( x2, y, color='b' )
- plt.savefig("test.png",bbox_inches='tight',transparent=True)
- # plt.show()
Advertisement
Add Comment
Please, Sign In to add comment