From 254c5e5e5e22f2e53c17f904d5efa4e4522dfabd Mon Sep 17 00:00:00 2001 From: hannah Date: Thu, 21 Dec 2023 21:30:25 +0000 Subject: [PATCH] spelling FormatedText->FormattedText --- data_prototype/wrappers.py | 2 +- examples/animation.py | 6 +++--- examples/mapped.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data_prototype/wrappers.py b/data_prototype/wrappers.py index 8c80779..faa29ef 100644 --- a/data_prototype/wrappers.py +++ b/data_prototype/wrappers.py @@ -332,7 +332,7 @@ def _update_wrapped(self, data): self._wrapped_instance.set_data(data["density"], data["edges"]) -class FormatedText(ProxyWrapper): +class FormattedText(ProxyWrapper): _wrapped_class = _Text _privtized_methods = ("set_text",) diff --git a/examples/animation.py b/examples/animation.py index 628f313..7c08a16 100644 --- a/examples/animation.py +++ b/examples/animation.py @@ -4,7 +4,7 @@ ================ An animated line using a custom container class, -:class:`.wrappers.LineWrapper`, and :class:`.wrappers.FormatedText`. +:class:`.wrappers.LineWrapper`, and :class:`.wrappers.FormattedText`. """ import time @@ -19,7 +19,7 @@ from data_prototype.containers import _MatplotlibTransform, Desc from data_prototype.conversion_node import FunctionConversionNode -from data_prototype.wrappers import LineWrapper, FormatedText +from data_prototype.wrappers import LineWrapper, FormattedText class SinOfTime: @@ -62,7 +62,7 @@ def update(frame, art): sot_c = SinOfTime() lw = LineWrapper(sot_c, lw=5, color="green", label="sin(time)") -fc = FormatedText( +fc = FormattedText( sot_c, FunctionConversionNode.from_funcs( {"text": lambda phase: f"ϕ={phase:.2f}", "x": lambda: 2 * np.pi, "y": lambda: 1} diff --git a/examples/mapped.py b/examples/mapped.py index 0fe7898..1b96ed2 100644 --- a/examples/mapped.py +++ b/examples/mapped.py @@ -12,7 +12,7 @@ from matplotlib.colors import Normalize -from data_prototype.wrappers import LineWrapper, FormatedText +from data_prototype.wrappers import LineWrapper, FormattedText from data_prototype.containers import ArrayContainer from data_prototype.conversion_node import FunctionConversionNode @@ -63,7 +63,7 @@ ) ) ax.add_artist( - FormatedText( + FormattedText( ac, text_converter, x=2 * np.pi,