diff --git a/examples/simple_scatter.py b/examples/simple_scatter.py index 4f28fb4..201edd7 100644 --- a/examples/simple_scatter.py +++ b/examples/simple_scatter.py @@ -1,11 +1,9 @@ """ -========================== -An animated lissajous ball -========================== - -Inspired by https://twitter.com/_brohrer_/status/1584681864648065027 - +================================================== +An simple scatter plot using PathCollectionWrapper +================================================== +A quick example using ``containers.ArrayContainer`` and ``wrappers.PathCollectionWrapper``. """ import numpy as np @@ -16,11 +14,6 @@ from data_prototype.wrappers import PathCollectionWrapper - -def update(frame, art): - return art - - marker_obj = mmarkers.MarkerStyle("o") cont = ArrayContainer( @@ -37,7 +30,4 @@ def update(frame, art): ax.set_ylim(0, 5) lw = PathCollectionWrapper(cont, offset_transform=ax.transData) ax.add_artist(lw) -# ax.set_xticks([]) -# ax.set_yticks([]) -# ax.set_aspect(1) plt.show()