def fill_plot():
 x = np.linspace(((-2) * np.pi), (2 * np.pi), 1000, endpoint=True)
 y = np.sin(x)
 plt.plot(x, y, color='blue', alpha=1.0)
 plt.fill_between(x, 0, y, (y > 0), color='blue', alpha=0.25)
 plt.fill_between(x, 0, y, (y < 0), color='red', alpha=0.25)
 plt.show()
 return

def fill_plot ( ) : x = np . linspace ( ( ( - 2 ) * np . pi ) , ( 2 * np . pi ) , 1000 , endpoint = True ) y = np . sin ( x ) plt . plot ( x , y , color = 'blue' , alpha = 1.0 ) plt . fill_between ( x , 0 , y , ( y > 0 ) , color = 'blue' , alpha = 0.25 ) plt . fill_between ( x , 0 , y , ( y < 0 ) , color = 'red' , alpha = 0.25 ) plt . show ( ) return
fill plot .