Skip to content

Commit

Permalink
Merge pull request #38 from story645/typo
Browse files Browse the repository at this point in the history
spelling FormatedText->FormattedText
  • Loading branch information
tacaswell authored Dec 27, 2023
2 parents a8813d5 + 254c5e5 commit 830ce25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 830ce25

Please sign in to comment.