From 54136782ff817ae5f7e84c3456fe0537f47c7eaa Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Wed, 23 Nov 2022 10:48:16 -0600 Subject: [PATCH 1/2] Fix description and remove unused code from scatter example --- examples/simple_scatter.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/examples/simple_scatter.py b/examples/simple_scatter.py index 4f28fb4..ccef873 100644 --- a/examples/simple_scatter.py +++ b/examples/simple_scatter.py @@ -1,11 +1,7 @@ """ -========================== -An animated lissajous ball -========================== - -Inspired by https://twitter.com/_brohrer_/status/1584681864648065027 - - +================================================== +An simple scatter plot using PathCollectionWrapper +================================================== """ import numpy as np @@ -16,11 +12,6 @@ from data_prototype.wrappers import PathCollectionWrapper - -def update(frame, art): - return art - - marker_obj = mmarkers.MarkerStyle("o") cont = ArrayContainer( @@ -37,7 +28,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() From 7e1d30d08d7a5b58f60f2a6665b2adc5bb88e933 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Wed, 23 Nov 2022 16:40:08 -0600 Subject: [PATCH 2/2] Add a sentence describing the plot --- examples/simple_scatter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/simple_scatter.py b/examples/simple_scatter.py index ccef873..201edd7 100644 --- a/examples/simple_scatter.py +++ b/examples/simple_scatter.py @@ -2,6 +2,8 @@ ================================================== An simple scatter plot using PathCollectionWrapper ================================================== + +A quick example using ``containers.ArrayContainer`` and ``wrappers.PathCollectionWrapper``. """ import numpy as np