Skip to content

Commit

Permalink
fix: add missing matplotlib import in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 committed Nov 6, 2023
1 parent 2fe36db commit 38c7685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/sdk/tutorials/medical_imaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ We assign a color to each class:


```python
import matplotlib.colors as mcolors

colors = plt.rcParams["axes.prop_cycle"].by_key()["color"]
colors = [
tuple(int(x * 255) for x in mcolors.hex2color(hex_color))
Expand Down
2 changes: 2 additions & 0 deletions recipes/medical_imaging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@
}
],
"source": [
"import matplotlib.colors as mcolors\n",
"\n",
"colors = plt.rcParams[\"axes.prop_cycle\"].by_key()[\"color\"]\n",
"colors = [\n",
" tuple(int(x * 255) for x in mcolors.hex2color(hex_color))\n",
Expand Down

0 comments on commit 38c7685

Please sign in to comment.