From b34e2ea25d55b5b84e40e2d4f66f7ec5d96d1aa0 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Thu, 22 Sep 2022 07:46:48 -0700 Subject: [PATCH 1/2] Fix a few typos --- data_prototype/containers.py | 2 +- data_prototype/wrappers.py | 4 ++-- examples/2Dfunc.py | 1 + setup.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/data_prototype/containers.py b/data_prototype/containers.py index b8593c7..140d440 100644 --- a/data_prototype/containers.py +++ b/data_prototype/containers.py @@ -218,7 +218,7 @@ def query( hash_key = hash((xmin, xmax)) if hash_key in self._cache: return self._cache[hash_key], hash_key - # TODO this gives an artifict with high lw + # TODO this gives an artifact with high lw edges_in = [] if dmin < xmin: edges_in.append(np.array([dmin])) diff --git a/data_prototype/wrappers.py b/data_prototype/wrappers.py index c8903d5..fac6e23 100644 --- a/data_prototype/wrappers.py +++ b/data_prototype/wrappers.py @@ -112,7 +112,7 @@ def _query_and_transform(self, renderer, *, xunits: List[str], yunits: List[str] # TODO find better way to placate mypy (int(round(bb_size[0])), int(round(bb_size[1]))), # TODO sort out how to spell the x/y scale - # TODO is scale enoguh? What do we have to do about non-trivial projection? + # TODO is scale enough? What do we have to do about non-trivial projection? xscale=None, yscale=None, ) @@ -131,7 +131,7 @@ def _query_and_transform(self, renderer, *, xunits: List[str], yunits: List[str] # doing the nu work here is nice because we can write it once, but we # really want to push this computation down a layer - # TODO sort out how this interaporates with the transform stack + # TODO sort out how this interoperates with the transform stack data = {k: self.nus.get(k, lambda x: x)(v) for k, v in data.items()} self._cache[cache_key] = data return data diff --git a/examples/2Dfunc.py b/examples/2Dfunc.py index 1368ab0..9c31a86 100644 --- a/examples/2Dfunc.py +++ b/examples/2Dfunc.py @@ -29,3 +29,4 @@ ax.set_xlim(-5, 5) ax.set_ylim(-5, 5) fig.colorbar(im) +plt.show() diff --git a/setup.py b/setup.py index f317230..72678a9 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ description="Experimental code for the upcoming Matplotlib data refactor.", long_description=readme, author="Thomas A Caswell", - author_email='tcaswll@gmail.com', + author_email='tacaswell@gmail.com', url='https://github.com/tacaswell/data_prototype', python_requires='>={}'.format('.'.join(str(n) for n in min_version)), packages=find_packages(exclude=['docs', 'tests']), From f44c836467263b40625556efb197fd215e2cc41b Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 22 Sep 2022 11:33:56 -0400 Subject: [PATCH 2/2] Correct email address again --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 72678a9..acbb43c 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ description="Experimental code for the upcoming Matplotlib data refactor.", long_description=readme, author="Thomas A Caswell", - author_email='tacaswell@gmail.com', + author_email='tcaswell@gmail.com', url='https://github.com/tacaswell/data_prototype', python_requires='>={}'.format('.'.join(str(n) for n in min_version)), packages=find_packages(exclude=['docs', 'tests']),