Skip to content

Fix typos #303

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 2 commits into from
Sep 19, 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
4 changes: 2 additions & 2 deletions docs/source/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@
"plot_v.add_image(data=data, name=\"random-image\")\n",
"\n",
"# a function to update the image_graphic\n",
"# a plot will pass its plot instance to the animation function as an arugment\n",
"# a plot will pass its plot instance to the animation function as an argument\n",
"def update_data(plot_instance):\n",
" new_data = np.random.rand(512, 512)\n",
" plot_instance[\"random-image\"].data = new_data\n",
Expand Down Expand Up @@ -1073,7 +1073,7 @@
"\n",
"plot_l.add_image(img, name=\"image\", cmap=\"gray\")\n",
"\n",
"# z axix position -1 so it is below all the lines\n",
"# z axis position -1 so it is below all the lines\n",
"plot_l[\"image\"].position_z = -1\n",
"plot_l[\"image\"].position_x = -50"
]
Expand Down
4 changes: 2 additions & 2 deletions examples/notebooks/simple.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
"plot_v.add_image(data=data, name=\"random-image\")\n",
"\n",
"# a function to update the image_graphic\n",
"# a plot will pass its plot instance to the animation function as an arugment\n",
"# a plot will pass its plot instance to the animation function as an argument\n",
"def update_data(plot_instance):\n",
" new_data = np.random.rand(512, 512)\n",
" plot_instance[\"random-image\"].data = new_data\n",
Expand Down Expand Up @@ -952,7 +952,7 @@
"\n",
"plot_l.add_image(img[::20, ::20], name=\"image\", cmap=\"gray\")\n",
"\n",
"# z axix position -1 so it is below all the lines\n",
"# z axis position -1 so it is below all the lines\n",
"plot_l[\"image\"].position_z = -1\n",
"plot_l[\"image\"].position_x = -8\n",
"plot_l[\"image\"].position_y = -8"
Expand Down
2 changes: 1 addition & 1 deletion fastplotlib/graphics/_features/_present.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _set(self, present: bool):

if i > 100:
raise RecursionError(
"Exceded scene graph depth threshold, cannot find Scene associated with"
"Exceeded scene graph depth threshold, cannot find Scene associated with"
"this graphic."
)

Expand Down
2 changes: 1 addition & 1 deletion fastplotlib/graphics/selectors/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _move_selectors(self, source, delta):
for s in self.selectors:
# must use == and not is to compare Graphics because they are weakref proxies!
if s == source:
# if it's the source, since it has already movied
# if it's the source, since it has already moved
continue

s._move_graphic(delta)
Expand Down
2 changes: 1 addition & 1 deletion fastplotlib/layouts/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
):
"""
Base class for plot creation and management. ``PlotArea`` is not intended to be instantiated by users
but rather to provide functionallity for ``subplot`` in ``gridplot`` and single ``plot``.
but rather to provide functionality for ``subplot`` in ``gridplot`` and single ``plot``.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions fastplotlib/widgets/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __init__(
if names is not None:
if not all([isinstance(n, str) for n in names]):
raise TypeError(
"optinal argument `names` must be a list of str"
"optional argument `names` must be a list of str"
)

if len(names) != len(self.data):
Expand Down Expand Up @@ -350,7 +350,7 @@ def __init__(
# dict of {array_ix: dims_order_str}
for data_ix in list(dims_order.keys()):
if not isinstance(data_ix, int):
raise TypeError("`dims_oder` dict keys must be <int>")
raise TypeError("`dims_order` dict keys must be <int>")
if len(dims_order[data_ix]) != self.ndim:
raise ValueError(
f"number of dims '{len(dims_order)} passed to `dims_order` "
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy