import numpy as np
import matplotlib.pyplot as plt

x = np.random.random((10,1)) # same as "a" in your example
y = np.random.random((10,1)) # same as "b" in your example

plt.plot(x,y)
plt.title("Rectangular coordinates")
plt.show()

th = np.arctan2(y,x)
r = np.sqrt(x**2 + y**2)

plt.polar(th,r)
plt.title("Polar coordinates")
plt.show()

f3e415bdb2a7526cdd0c7683b37efd7795a199ff
<mask token>

<mask token>
plt.plot(x, y)
plt.title('Rectangular coordinates')
plt.show()
<mask token>
plt.polar(th, r)
plt.title('Polar coordinates')
plt.show()

<mask token>
x = np.random.random((10, 1))
y = np.random.random((10, 1))
plt.plot(x, y)
plt.title('Rectangular coordinates')
plt.show()
th = np.arctan2(y, x)
r = np.sqrt(x ** 2 + y ** 2)
plt.polar(th, r)
plt.title('Polar coordinates')
plt.show()

import numpy as np
import matplotlib.pyplot as plt
x = np.random.random((10, 1))
y = np.random.random((10, 1))
plt.plot(x, y)
plt.title('Rectangular coordinates')
plt.show()
th = np.arctan2(y, x)
r = np.sqrt(x ** 2 + y ** 2)
plt.polar(th, r)
plt.title('Polar coordinates')
plt.show()

import numpy as np
import matplotlib.pyplot as plt

x = np.random.random((10,1)) # same as "a" in your example
y = np.random.random((10,1)) # same as "b" in your example

plt.plot(x,y)
plt.title("Rectangular coordinates")
plt.show()

th = np.arctan2(y,x)
r = np.sqrt(x**2 + y**2)

plt.polar(th,r)
plt.title("Polar coordinates")
plt.show()
