Skip to content

spelling FormatedText->FormattedText #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data_prototype/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",)

Expand Down
6 changes: 3 additions & 3 deletions examples/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions examples/mapped.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -63,7 +63,7 @@
)
)
ax.add_artist(
FormatedText(
FormattedText(
ac,
text_converter,
x=2 * np.pi,
Expand Down