GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-examples/python-examples/scatterplot-example.py at main · james-see/python-examples Expand file tree/ Copy pathscatterplot-example.pyMore file actions 15 lines (12 loc) · 373 Bytes / Copy pathscatterplot-example.pyFile metadata and controls15 lines (12 loc) · 373 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 """Nice random scatter bubble numpy and matplotlib example.""" # author: James Campbell # Date Created: 2015 06 02 import numpy as np import matplotlib.pyplot as plt N = 50 x = np.random.rand(N) y = np.random.rand(N) colors = np.random.rand(N) area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radiuses plt.scatter(x, y, s=area, c=colors, alpha=0.5) plt.show() |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |