Skip to content

Commit f7facc6

Browse files
author
Caitlin Lewis
committed
update comments, small edits
1 parent aebbf3e commit f7facc6

File tree

2 files changed

+342
-183
lines changed

2 files changed

+342
-183
lines changed

image.ipynb

Lines changed: 106 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"cell_type": "code",
75-
"execution_count": 1,
75+
"execution_count": 10,
7676
"id": "9aeb2e39-cc13-4662-ada0-cfed7ee2b26c",
7777
"metadata": {
7878
"tags": []
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 2,
90+
"execution_count": 11,
9191
"id": "fb57c3d3-f20d-4d88-9e7a-04b9309bc637",
9292
"metadata": {
9393
"tags": []
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"cell_type": "code",
113-
"execution_count": 3,
113+
"execution_count": 12,
114114
"id": "99f0c624-85a6-4a42-92b0-30b0b04075b4",
115115
"metadata": {
116116
"tags": []
@@ -122,7 +122,7 @@
122122
},
123123
{
124124
"cell_type": "code",
125-
"execution_count": 4,
125+
"execution_count": 13,
126126
"id": "630e4762-de01-47fe-be9d-547182a1fbf9",
127127
"metadata": {
128128
"tags": []
@@ -150,7 +150,7 @@
150150
},
151151
{
152152
"cell_type": "code",
153-
"execution_count": 5,
153+
"execution_count": 14,
154154
"id": "237823b7-e2c0-4e2f-9ee8-e3fc2b4453c4",
155155
"metadata": {
156156
"tags": []
@@ -159,7 +159,7 @@
159159
{
160160
"data": {
161161
"application/vnd.jupyter.widget-view+json": {
162-
"model_id": "ce138ebe1a3249359008c054c53b5aee",
162+
"model_id": "b82eaf5ed8ef4e72a5168a6a5afc8e8a",
163163
"version_major": 2,
164164
"version_minor": 0
165165
},
@@ -215,7 +215,7 @@
215215
},
216216
{
217217
"cell_type": "code",
218-
"execution_count": 6,
218+
"execution_count": 38,
219219
"id": "de816c88-1c4a-4071-8a5e-c46c93671ef5",
220220
"metadata": {
221221
"tags": []
@@ -228,7 +228,9 @@
228228
{
229229
"cell_type": "markdown",
230230
"id": "7303677c-9f7a-44dd-8660-eced0cdca565",
231-
"metadata": {},
231+
"metadata": {
232+
"tags": []
233+
},
232234
"source": [
233235
"### Slicing data\n",
234236
"\n",
@@ -239,7 +241,7 @@
239241
},
240242
{
241243
"cell_type": "code",
242-
"execution_count": 7,
244+
"execution_count": 39,
243245
"id": "83b2db1b-2783-4e89-bcf3-66bb6e09e18a",
244246
"metadata": {
245247
"tags": []
@@ -260,7 +262,7 @@
260262
},
261263
{
262264
"cell_type": "code",
263-
"execution_count": 8,
265+
"execution_count": 40,
264266
"id": "3e298c1c-7551-4401-ade0-b9af7d2bbe23",
265267
"metadata": {
266268
"tags": []
@@ -280,7 +282,7 @@
280282
},
281283
{
282284
"cell_type": "code",
283-
"execution_count": 9,
285+
"execution_count": 41,
284286
"id": "ea100318-023c-4963-b859-8c2a8fcce301",
285287
"metadata": {
286288
"tags": []
@@ -293,7 +295,7 @@
293295
},
294296
{
295297
"cell_type": "code",
296-
"execution_count": 10,
298+
"execution_count": 42,
297299
"id": "a1320f9f-fff5-4b9b-9a49-0695042ab8ab",
298300
"metadata": {
299301
"tags": []
@@ -305,7 +307,7 @@
305307
},
306308
{
307309
"cell_type": "code",
308-
"execution_count": 11,
310+
"execution_count": 43,
309311
"id": "4c369d3d-7219-4231-80cd-ce82b6a67a20",
310312
"metadata": {
311313
"tags": []
@@ -339,7 +341,7 @@
339341
},
340342
{
341343
"cell_type": "code",
342-
"execution_count": 12,
344+
"execution_count": 44,
343345
"id": "aadd757f-6379-4f52-a709-46aa57c56216",
344346
"metadata": {
345347
"tags": []
@@ -348,7 +350,7 @@
348350
{
349351
"data": {
350352
"application/vnd.jupyter.widget-view+json": {
351-
"model_id": "2c658310843f4d0bb1cadd993d7a26ab",
353+
"model_id": "d284e575b6ef4aa29aee138feb152a34",
352354
"version_major": 2,
353355
"version_minor": 0
354356
},
@@ -358,14 +360,6 @@
358360
},
359361
"metadata": {},
360362
"output_type": "display_data"
361-
},
362-
{
363-
"name": "stderr",
364-
"output_type": "stream",
365-
"text": [
366-
"/home/clewis7/repos/fastplotlib/fastplotlib/graphics/_features/_base.py:34: UserWarning: converting float64 array to float32\n",
367-
" warn(f\"converting {array.dtype} array to float32\")\n"
368-
]
369363
}
370364
],
371365
"source": [
@@ -399,7 +393,7 @@
399393
},
400394
{
401395
"cell_type": "code",
402-
"execution_count": 13,
396+
"execution_count": 45,
403397
"id": "99d234c6-220a-4093-a6a0-6036d2e40000",
404398
"metadata": {
405399
"tags": []
@@ -430,7 +424,7 @@
430424
},
431425
{
432426
"cell_type": "code",
433-
"execution_count": null,
427+
"execution_count": 46,
434428
"id": "5139ad7c-2d72-402b-9239-27dcf5bd0c89",
435429
"metadata": {
436430
"tags": []
@@ -443,12 +437,42 @@
443437
},
444438
{
445439
"cell_type": "code",
446-
"execution_count": null,
440+
"execution_count": 47,
447441
"id": "207632a8-9f7d-4931-bebc-b43a49e63b9e",
448442
"metadata": {
449443
"tags": []
450444
},
451-
"outputs": [],
445+
"outputs": [
446+
{
447+
"data": {
448+
"application/vnd.jupyter.widget-view+json": {
449+
"model_id": "7055881e2efa4143be1a3cdec4f26bf1",
450+
"version_major": 2,
451+
"version_minor": 0
452+
},
453+
"text/plain": [
454+
"RFBOutputContext()"
455+
]
456+
},
457+
"metadata": {},
458+
"output_type": "display_data"
459+
},
460+
{
461+
"data": {
462+
"application/vnd.jupyter.widget-view+json": {
463+
"model_id": "1e1d7a4510f94877b53ee9a9dac3b34c",
464+
"version_major": 2,
465+
"version_minor": 0
466+
},
467+
"text/plain": [
468+
"VBox(children=(VBox(children=(JupyterWgpuCanvas(), HBox(children=(Button(icon='expand-arrows-alt', layout=Layo…"
469+
]
470+
},
471+
"execution_count": 47,
472+
"metadata": {},
473+
"output_type": "execute_result"
474+
}
475+
],
452476
"source": [
453477
"plot_movie = fpl.Plot()\n",
454478
"\n",
@@ -481,14 +505,15 @@
481505
},
482506
{
483507
"cell_type": "code",
484-
"execution_count": null,
508+
"execution_count": 16,
485509
"id": "7f32b582-b01d-41ab-bcfb-88ddcf1fd3be",
486510
"metadata": {
487511
"tags": []
488512
},
489513
"outputs": [],
490514
"source": [
491-
"plot_movie.close()"
515+
"plot_movie.close()\n",
516+
"slider.close()"
492517
]
493518
},
494519
{
@@ -501,7 +526,7 @@
501526
},
502527
{
503528
"cell_type": "code",
504-
"execution_count": null,
529+
"execution_count": 17,
505530
"id": "d64091d5-4071-49b0-b852-348657e9abbd",
506531
"metadata": {
507532
"tags": []
@@ -514,12 +539,23 @@
514539
},
515540
{
516541
"cell_type": "code",
517-
"execution_count": null,
542+
"execution_count": 18,
518543
"id": "0377bd4e-ba0a-48e9-a647-a8ee7d770afa",
519544
"metadata": {
520545
"tags": []
521546
},
522-
"outputs": [],
547+
"outputs": [
548+
{
549+
"data": {
550+
"text/plain": [
551+
"(1309, 30, 512, 512)"
552+
]
553+
},
554+
"execution_count": 18,
555+
"metadata": {},
556+
"output_type": "execute_result"
557+
}
558+
],
523559
"source": [
524560
"movie.shape"
525561
]
@@ -534,12 +570,27 @@
534570
},
535571
{
536572
"cell_type": "code",
537-
"execution_count": null,
573+
"execution_count": 19,
538574
"id": "7a76119e-2035-48ba-9a88-a8a6f64a3365",
539575
"metadata": {
540576
"tags": []
541577
},
542-
"outputs": [],
578+
"outputs": [
579+
{
580+
"data": {
581+
"application/vnd.jupyter.widget-view+json": {
582+
"model_id": "1e0a947e28224892a5653a3ed560d67b",
583+
"version_major": 2,
584+
"version_minor": 0
585+
},
586+
"text/plain": [
587+
"RFBOutputContext()"
588+
]
589+
},
590+
"metadata": {},
591+
"output_type": "display_data"
592+
}
593+
],
543594
"source": [
544595
"iw = fpl.ImageWidget(\n",
545596
" data=movie,\n",
@@ -553,7 +604,7 @@
553604
},
554605
{
555606
"cell_type": "code",
556-
"execution_count": null,
607+
"execution_count": 20,
557608
"id": "6cac96f4-a8e9-481a-8014-2d2570c04db3",
558609
"metadata": {
559610
"tags": []
@@ -578,7 +629,7 @@
578629
},
579630
{
580631
"cell_type": "code",
581-
"execution_count": null,
632+
"execution_count": 36,
582633
"id": "d29c857c-78f8-4bc5-a00f-83d9985eaeb7",
583634
"metadata": {
584635
"tags": []
@@ -591,7 +642,7 @@
591642
},
592643
{
593644
"cell_type": "code",
594-
"execution_count": null,
645+
"execution_count": 37,
595646
"id": "86261ca9-1cd8-43ee-ad72-7a05b3489510",
596647
"metadata": {
597648
"tags": []
@@ -612,12 +663,27 @@
612663
},
613664
{
614665
"cell_type": "code",
615-
"execution_count": null,
666+
"execution_count": 38,
616667
"id": "770f8242-e8ff-40fc-86c3-9d44abca85d6",
617668
"metadata": {
618669
"tags": []
619670
},
620-
"outputs": [],
671+
"outputs": [
672+
{
673+
"data": {
674+
"application/vnd.jupyter.widget-view+json": {
675+
"model_id": "8a1b7240246b4128b4c39d49aeb5d17e",
676+
"version_major": 2,
677+
"version_minor": 0
678+
},
679+
"text/plain": [
680+
"RFBOutputContext()"
681+
]
682+
},
683+
"metadata": {},
684+
"output_type": "display_data"
685+
}
686+
],
621687
"source": [
622688
"# get a list of txy arrays for each plane\n",
623689
"planes = [movie[:, i] for i in range(movie.shape[1])]\n",
@@ -638,7 +704,7 @@
638704
},
639705
{
640706
"cell_type": "code",
641-
"execution_count": null,
707+
"execution_count": 39,
642708
"id": "e49e7b96-c1a7-4c1f-956a-1bab482b0ce0",
643709
"metadata": {
644710
"tags": []

0 commit comments

Comments
 (0)