From 262d967f868b05a22518c27766a43bd905a2721a Mon Sep 17 00:00:00 2001 From: Anthony Androulakis <43938491+AnthonyAndroulakis@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:39:03 -0400 Subject: [PATCH] fix colormap spelling --- docs/source/development-notes/py-ts-messaging.rst | 2 +- examples/custom_code.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/development-notes/py-ts-messaging.rst b/docs/source/development-notes/py-ts-messaging.rst index 00e1cca..0e8182c 100644 --- a/docs/source/development-notes/py-ts-messaging.rst +++ b/docs/source/development-notes/py-ts-messaging.rst @@ -51,7 +51,7 @@ The ``Niivue.run_custom_code`` function displays this implementation. .. code:: py - >>> colormaps = nv.run_custom_code('nv.colorMaps()') + >>> colormaps = nv.run_custom_code('nv.colormaps()') Done. >>> print(colormaps) diff --git a/examples/custom_code.ipynb b/examples/custom_code.ipynb index 00e89a0..b8a0f2e 100644 --- a/examples/custom_code.ipynb +++ b/examples/custom_code.ipynb @@ -128,7 +128,7 @@ }, "outputs": [], "source": [ - "colormaps = nv.run_custom_code('this.nv.colorMaps()')\n", + "colormaps = nv.run_custom_code('this.nv.colormaps()')\n", "colormaps" ] }, @@ -227,7 +227,7 @@ "source": [ "code = '''\n", "var nv = this.nv;\n", - "function getColorMap() {\n", + "function getColormap() {\n", " var id = nv.volumes[0].id;\n", " return nv.colormap(id);\n", "}\n",