Skip to content

Commit 224b534

Browse files
committed
fixed import
2 parents ed0a28e + 833e502 commit 224b534

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

notebooks/examples/sdata_from_scratch.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,16 +3467,14 @@
34673467
],
34683468
"source": [
34693469
"# subset the DataFrame to focus on a smaller region of the data\n",
3470-
"subset_df = spot_df[\n",
3471-
" (spot_df[\"array_col\"].between(20, 30)) & (spot_df[\"array_row\"].between(20, 30))\n",
3472-
"]\n",
3470+
"subset_df = spot_df[(spot_df[\"array_col\"].between(20, 30)) & (spot_df[\"array_row\"].between(20, 30))]\n",
34733471
"\n",
34743472
"# create the plot\n",
34753473
"plt.figure(figsize=(10, 8))\n",
34763474
"for _, row in subset_df.iterrows():\n",
34773475
" x, y = row[\"spot_center_x\"], row[\"spot_center_y\"]\n",
34783476
" label = f\"({row['array_row']},{row['array_col']})\"\n",
3479-
" plt.text(x, y+30, label, fontsize=9, ha=\"center\", va=\"center\")\n",
3477+
" plt.text(x, y + 30, label, fontsize=9, ha=\"center\", va=\"center\")\n",
34803478
" plt.scatter(x, y, c=\"k\", alpha=0.4)\n",
34813479
"\n",
34823480
"# set plot limits and labels\n",

0 commit comments

Comments
 (0)