Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a16e793

Browse files
committed
Clean-up and move scatter_demo
1 parent 31c4b57 commit a16e793

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

examples/pylab_examples/scatter_demo.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Simple demo of a scatter plot.
3+
"""
4+
import numpy as np
5+
import matplotlib.pyplot as plt
6+
7+
8+
N = 50
9+
x = np.random.rand(N)
10+
y = np.random.rand(N)
11+
area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radiuses
12+
13+
plt.scatter(x, y, s=area, alpha=0.5)
14+
plt.show()

0 commit comments

Comments
 (0)