Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 0135741

Browse files
author
Leanne Guy
committed
Address PR comments
1 parent 8cc8dd7 commit 0135741

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

08_Interactive_Image_Visualization.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
"cell_type": "markdown",
344344
"metadata": {},
345345
"source": [
346-
"The `data` object contains many columns. If no columns are specified, explicitly the first 2 columns are taken for x and y respectively by the `Scatter` element. "
346+
"The `data` object contains many columns. If no columns are specified, explicitly the first 2 columns are taken for x and y respectively by the [Scatter Element](https://holoviews.org/reference/elements/bokeh/Scatter.html)."
347347
]
348348
},
349349
{
@@ -381,7 +381,7 @@
381381
"cell_type": "markdown",
382382
"metadata": {},
383383
"source": [
384-
"Next, let's create a layout of several plots. A `Layout` is a type of `Container` that can contain any HoloViews object. Other types of Containers that exist include Overlay, Gridspace, Dynamicmap, etc. See the Holoviews [Reference Gallery](http://holoviews.org/reference/index.html) for the full list of `Layouts` that can be created with Holoviews. See [Building Composite Objects](http://holoviews.org/user_guide/Building_Composite_Objects.html) for the full details about the ways Containers can be composed.\n",
384+
"Next, let's create a layout of several plots. A `Layout` is a type of `Container` that can contain any HoloViews object. Other types of Containers that exist include `Overlay`, `Gridspace`, `Dynamicmap`, etc. See the Holoviews [Reference Gallery](http://holoviews.org/reference/index.html) for the full list of `Layouts` that can be created with Holoviews. See [Building Composite Objects](http://holoviews.org/user_guide/Building_Composite_Objects.html) for the full details about the ways Containers can be composed.\n",
385385
"\n",
386386
"The `+` operator is used to create a Layout. "
387387
]
@@ -397,7 +397,7 @@
397397
" title=\"Skyplot\", toolbar='above', tools = ['hover'], \n",
398398
" height=350, width=350) \n",
399399
"\n",
400-
"# Build a composite object using the `+` operator\n",
400+
"# Construct a layout using the `+` operator\n",
401401
"skyplots = skyplot + \\\n",
402402
" skyplot[59.67:60.07, -30.71:-29.78].opts(\n",
403403
" title=\"Skyplot region\", tools=[]) + \\\n",
@@ -538,7 +538,7 @@
538538
"metadata": {},
539539
"outputs": [],
540540
"source": [
541-
"%%opts Scatter [tools=['hover'], toolbar='above',height=400, width=400](color='grey')\n",
541+
"# %%opts Scatter [tools=['hover'], toolbar='above',height=400, width=400](color='grey')\n",
542542
"hv.Scatter(data)"
543543
]
544544
},
@@ -853,8 +853,9 @@
853853
"metadata": {},
854854
"outputs": [],
855855
"source": [
856-
"print('The value at position (%.3f, %.3f) is %.3f' %\n",
857-
" (posxy.x, posxy.y, calexp.image.array[-int(posxy.y), int(posxy.x)]))"
856+
"print('The scaled/raw value at position (%.3f, %.3f) is %.3f / %.3f' %\n",
857+
" (posxy.x, posxy.y, scaledImage[-int(posxy.y), int(posxy.x)], \n",
858+
" calexp.image.array[-int(posxy.y), int(posxy.x)]))"
858859
]
859860
},
860861
{

0 commit comments

Comments
 (0)