|
13 | 13 | {
|
14 | 14 | "cell_type": "markdown",
|
15 | 15 | "id": "807a45e5-5473-477b-9cb3-41a03a8135c7",
|
16 |
| - "metadata": {}, |
| 16 | + "metadata": { |
| 17 | + "tags": [] |
| 18 | + }, |
17 | 19 | "source": [
|
18 | 20 | "## `fastplotlib` API\n",
|
19 | 21 | "\n",
|
|
33 | 35 | " "
|
34 | 36 | ]
|
35 | 37 | },
|
| 38 | + { |
| 39 | + "cell_type": "markdown", |
| 40 | + "id": "03169ecd-8916-4ddd-a023-066f7be7d648", |
| 41 | + "metadata": {}, |
| 42 | + "source": [ |
| 43 | + "# Running demos on an ancient Quadro P500 laptop GPU\n", |
| 44 | + "\n", |
| 45 | + "## nearly 6 years old\n", |
| 46 | + "\n", |
| 47 | + "Benchmark - 1,555\n", |
| 48 | + "\n", |
| 49 | + "Nothing compared to midrange GPU, RTX 3060 Ti: 20,633\n", |
| 50 | + "\n", |
| 51 | + "https://www.videocardbenchmark.net/gpu.php?gpu=Quadro+P500&id=3911" |
| 52 | + ] |
| 53 | + }, |
36 | 54 | {
|
37 | 55 | "cell_type": "markdown",
|
38 | 56 | "id": "b95759bc-b567-4327-b825-68fe871c3473",
|
|
108 | 126 | "outputs": [],
|
109 | 127 | "source": [
|
110 | 128 | "# create a `Plot` instance\n",
|
111 |
| - "plot = fpl.Plot()\n", |
| 129 | + "plot = fpl.Plot(size=(600, 500))\n", |
112 | 130 | "\n",
|
113 | 131 | "# get a grayscale image\n",
|
114 | 132 | "data = iio.imread(\"imageio:camera.png\")\n",
|
115 | 133 | "\n",
|
116 | 134 | "# plot the image data\n",
|
117 | 135 | "image_graphic = plot.add_image(data=data, name=\"sample-image\")\n",
|
118 | 136 | "\n",
|
119 |
| - "# display plot in side car\n", |
120 |
| - "sc = Sidecar(title=\"sample image\")\n", |
| 137 | + "# display plot in sidecar\n", |
| 138 | + "sc = Sidecar(title=\"sample image\", layout={'width': '800px'})\n", |
121 | 139 | "\n",
|
122 | 140 | "with sc:\n",
|
123 | 141 | " # show the plot\n",
|
|
282 | 300 | "outputs": [],
|
283 | 301 | "source": [
|
284 | 302 | "# create another `Plot` instance\n",
|
285 |
| - "plot_v = fpl.Plot()\n", |
| 303 | + "plot_v = fpl.Plot(size=(600, 500))\n", |
286 | 304 | "\n",
|
287 | 305 | "plot.canvas.max_buffered_frames = 1\n",
|
288 | 306 | "\n",
|
|
328 | 346 | },
|
329 | 347 | "outputs": [],
|
330 | 348 | "source": [
|
331 |
| - "plot_sync = fpl.Plot(controller=plot_v.controller)\n", |
| 349 | + "plot_sync = fpl.Plot(controller=plot_v.controller, size=(600, 500))\n", |
332 | 350 | "\n",
|
333 | 351 | "data = np.random.rand(512, 512)\n",
|
334 | 352 | "\n",
|
|
417 | 435 | "## Plot and scroll through the first dimension with a slider"
|
418 | 436 | ]
|
419 | 437 | },
|
420 |
| - { |
421 |
| - "cell_type": "code", |
422 |
| - "execution_count": null, |
423 |
| - "id": "98e7d66c-fc02-42dd-8931-a4f116d8ee8c", |
424 |
| - "metadata": { |
425 |
| - "tags": [] |
426 |
| - }, |
427 |
| - "outputs": [], |
428 |
| - "source": [ |
429 |
| - "!pip install \"imageio[pyav]\"" |
430 |
| - ] |
431 |
| - }, |
432 | 438 | {
|
433 | 439 | "cell_type": "code",
|
434 | 440 | "execution_count": null,
|
|
604 | 610 | "sc.close()"
|
605 | 611 | ]
|
606 | 612 | },
|
607 |
| - { |
608 |
| - "cell_type": "code", |
609 |
| - "execution_count": null, |
610 |
| - "id": "03837ed8-05b1-4518-85b3-8fdf7263b52e", |
611 |
| - "metadata": {}, |
612 |
| - "outputs": [], |
613 |
| - "source": [] |
614 |
| - }, |
615 | 613 | {
|
616 | 614 | "cell_type": "code",
|
617 | 615 | "execution_count": null,
|
|
637 | 635 | "name": "python",
|
638 | 636 | "nbconvert_exporter": "python",
|
639 | 637 | "pygments_lexer": "ipython3",
|
640 |
| - "version": "3.11.3" |
| 638 | + "version": "3.11.4" |
641 | 639 | }
|
642 | 640 | },
|
643 | 641 | "nbformat": 4,
|
|
0 commit comments