top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Oct 7
  • 1 min read
import numpy as np
import matplotlib.pyplot as plt
xdim = 502; ydim = 302
matrix = [[np.sin(x/20) * np.cos(y/15) for x in range(xdim - 1)] for y in range(ydim - 1)]

plt.imshow(matrix, cmap='plasma', interpolation='bilinear')

plt.title("sin(x/20)*cos(y/15)");
plt.xlabel("xdim"); plt.ylabel("ydim")
plt.colorbar()
plt.show()

ree

 
 
 

1 Comment


Guest
Oct 07

Try to run it yourself.

Like
bottom of page