Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 3, 2023
1 parent 60abdfd commit 45a187e
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 33 deletions.
2 changes: 2 additions & 0 deletions docs/examples/custom-callbacks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
"# attach a custom callback\n",
"\n",
"# if running from a script you can just delete the widgets.Output and associated code\n",
"\n",
"\n",
"def my_callback(tau, beta):\n",
" if tau < 7.5:\n",
" ax.tick_params(axis=\"x\", colors=\"red\")\n",
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/devlop/devlop-controller.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@
" )\n",
"\n",
" def update(params, indices):\n",
"\n",
" # update plot\n",
" for i, f in enumerate(funcs):\n",
" if x is not None and not indexed_x:\n",
Expand Down Expand Up @@ -379,7 +378,6 @@
"\n",
" lines = []\n",
" for i, f in enumerate(funcs):\n",
"\n",
" if x is not None and not indexed_x:\n",
" lines.append(ax.plot(x, f(x, **params), **plot_kwargs[i])[0])\n",
" elif indexed_x:\n",
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/hyperslicer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/rossler-attractor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/scatter-selector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/text-annotations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@
"\n",
"iplt.title(\"the value of tau is: {tau:.2f}\", controls=controls[\"tau\"])\n",
"# you can still use plt commands if this is the active figure\n",
"\n",
"\n",
"def ylabel(tau):\n",
" return f\"tau/2 is {np.round(tau/2,3)}\"\n",
"\n",
Expand Down
3 changes: 0 additions & 3 deletions mpl_interactions/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def heatmap_slicer(
figsize=(18, 9),
**pcolormesh_kwargs,
):

"""
Compare horizontal and/or vertical slices across multiple arrays.
Expand Down Expand Up @@ -594,7 +593,6 @@ def hyperslicer(
display_controls=True,
**kwargs,
):

"""
View slices from a hyperstack of images selected by sliders. Also accepts Xarray.DataArrays
in which case the axes names and coordinates will be inferred from the xarray dims and coords.
Expand Down Expand Up @@ -697,7 +695,6 @@ def hyperslicer(

# Just pass in an array - no kwargs
for i in range(arr.ndim - im_dims):

start, stop = None, None
name = f"axis{i}"
if name in kwargs:
Expand Down

0 comments on commit 45a187e

Please sign in to comment.