Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 1735
Image: ubuntu1804
Kernel: Python 2 (system-wide)

import numpy as np import matplotlib.pyplot as plt colors = ['ro','go','bo','mo'] for j in range(4): num = 500+j*100 alpha = np.random.rand(1,num)*3.14 + 1.57 r = np.random.rand(1,num)+j x = r*np.sin(alpha) y = r*np.cos(alpha) plt.plot(x,y,colors[j%4]) colors = ['bo','mo','ro','go'] for j in range(4): num = 500+j*100 alpha = np.random.rand(1,num)*3.14 - 1.57 r = np.random.rand(1,num)+j x = r*np.sin(alpha) y = r*np.cos(alpha) plt.plot(x,y,colors[j%4])
Image in a Jupyter notebook