Skip to content

Commit cab4a67

Browse files
authored
Merge pull request #21 from ksunden/scatter_description
Fix description and remove unused code from scatter example
2 parents 4a722cc + 7e1d30d commit cab4a67

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

examples/simple_scatter.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
==========================
3-
An animated lissajous ball
4-
==========================
5-
6-
Inspired by https://twitter.com/_brohrer_/status/1584681864648065027
7-
2+
==================================================
3+
An simple scatter plot using PathCollectionWrapper
4+
==================================================
85
6+
A quick example using ``containers.ArrayContainer`` and ``wrappers.PathCollectionWrapper``.
97
"""
108
import numpy as np
119

@@ -16,11 +14,6 @@
1614

1715
from data_prototype.wrappers import PathCollectionWrapper
1816

19-
20-
def update(frame, art):
21-
return art
22-
23-
2417
marker_obj = mmarkers.MarkerStyle("o")
2518

2619
cont = ArrayContainer(
@@ -37,7 +30,4 @@ def update(frame, art):
3730
ax.set_ylim(0, 5)
3831
lw = PathCollectionWrapper(cont, offset_transform=ax.transData)
3932
ax.add_artist(lw)
40-
# ax.set_xticks([])
41-
# ax.set_yticks([])
42-
# ax.set_aspect(1)
4333
plt.show()

0 commit comments

Comments
 (0)