def subplot_plot():
 style_list = ['g+-', 'r*-', 'b.-', 'yo-']
 for num in range(4):
  x = np.linspace(0.0, (2 + num), num=(10 * (num + 1)))
  y = np.sin((((5 - num) * np.pi) * x))
  plt.subplot(2, 2, (num + 1))
  plt.plot(x, y, style_list[num])
 plt.grid(True)
 plt.show()
 return

def subplot_plot ( ) : style_list = [ 'g+-' , 'r*-' , 'b.-' , 'yo-' ] for num in range ( 4 ) : x = np . linspace ( 0.0 , ( 2 + num ) , num = ( 10 * ( num + 1 ) ) ) y = np . sin ( ( ( ( 5 - num ) * np . pi ) * x ) ) plt . subplot ( 2 , 2 , ( num + 1 ) ) plt . plot ( x , y , style_list [ num ] ) plt . grid ( True ) plt . show ( ) return
subplot plot .