Skip to content

Commit f7fa645

Browse files
Fix typos (#303)
* Fix typos Found via `codespell -L nwo,fo,te,ue,nd,ned,noo,bumb,bu,tbe,morg` * Update CODE_OF_CONDUCT.md --------- Co-authored-by: Kushal Kolar <kushalkolar@gmail.com>
1 parent a363713 commit f7fa645

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/source/quickstart.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@
599599
"plot_v.add_image(data=data, name=\"random-image\")\n",
600600
"\n",
601601
"# a function to update the image_graphic\n",
602-
"# a plot will pass its plot instance to the animation function as an arugment\n",
602+
"# a plot will pass its plot instance to the animation function as an argument\n",
603603
"def update_data(plot_instance):\n",
604604
" new_data = np.random.rand(512, 512)\n",
605605
" plot_instance[\"random-image\"].data = new_data\n",
@@ -1073,7 +1073,7 @@
10731073
"\n",
10741074
"plot_l.add_image(img, name=\"image\", cmap=\"gray\")\n",
10751075
"\n",
1076-
"# z axix position -1 so it is below all the lines\n",
1076+
"# z axis position -1 so it is below all the lines\n",
10771077
"plot_l[\"image\"].position_z = -1\n",
10781078
"plot_l[\"image\"].position_x = -50"
10791079
]

examples/notebooks/simple.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@
533533
"plot_v.add_image(data=data, name=\"random-image\")\n",
534534
"\n",
535535
"# a function to update the image_graphic\n",
536-
"# a plot will pass its plot instance to the animation function as an arugment\n",
536+
"# a plot will pass its plot instance to the animation function as an argument\n",
537537
"def update_data(plot_instance):\n",
538538
" new_data = np.random.rand(512, 512)\n",
539539
" plot_instance[\"random-image\"].data = new_data\n",
@@ -952,7 +952,7 @@
952952
"\n",
953953
"plot_l.add_image(img[::20, ::20], name=\"image\", cmap=\"gray\")\n",
954954
"\n",
955-
"# z axix position -1 so it is below all the lines\n",
955+
"# z axis position -1 so it is below all the lines\n",
956956
"plot_l[\"image\"].position_z = -1\n",
957957
"plot_l[\"image\"].position_x = -8\n",
958958
"plot_l[\"image\"].position_y = -8"

fastplotlib/graphics/_features/_present.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _set(self, present: bool):
3838

3939
if i > 100:
4040
raise RecursionError(
41-
"Exceded scene graph depth threshold, cannot find Scene associated with"
41+
"Exceeded scene graph depth threshold, cannot find Scene associated with"
4242
"this graphic."
4343
)
4444

fastplotlib/graphics/selectors/_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _move_selectors(self, source, delta):
7575
for s in self.selectors:
7676
# must use == and not is to compare Graphics because they are weakref proxies!
7777
if s == source:
78-
# if it's the source, since it has already movied
78+
# if it's the source, since it has already moved
7979
continue
8080

8181
s._move_graphic(delta)

fastplotlib/layouts/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
):
4141
"""
4242
Base class for plot creation and management. ``PlotArea`` is not intended to be instantiated by users
43-
but rather to provide functionallity for ``subplot`` in ``gridplot`` and single ``plot``.
43+
but rather to provide functionality for ``subplot`` in ``gridplot`` and single ``plot``.
4444
4545
Parameters
4646
----------

fastplotlib/widgets/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def __init__(
300300
if names is not None:
301301
if not all([isinstance(n, str) for n in names]):
302302
raise TypeError(
303-
"optinal argument `names` must be a list of str"
303+
"optional argument `names` must be a list of str"
304304
)
305305

306306
if len(names) != len(self.data):
@@ -350,7 +350,7 @@ def __init__(
350350
# dict of {array_ix: dims_order_str}
351351
for data_ix in list(dims_order.keys()):
352352
if not isinstance(data_ix, int):
353-
raise TypeError("`dims_oder` dict keys must be <int>")
353+
raise TypeError("`dims_order` dict keys must be <int>")
354354
if len(dims_order[data_ix]) != self.ndim:
355355
raise ValueError(
356356
f"number of dims '{len(dims_order)} passed to `dims_order` "

0 commit comments

Comments
 (0)