{ "cells": [ { "cell_type": "markdown", "id": "f88c95dc", "metadata": {}, "source": [ "# `geomSpoke()`" ] }, { "cell_type": "code", "execution_count": 1, "id": "e0c1ea2b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use lets-plot" ] }, { "cell_type": "code", "execution_count": 2, "id": "fa88b440", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Lets-Plot Kotlin API v.4.6.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.2.0." ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "LetsPlot.getInfo()" ] }, { "cell_type": "code", "execution_count": 3, "id": "contrary-baltimore", "metadata": {}, "outputs": [], "source": [ "fun linspace(start: Double, stop: Double, num: Int): DoubleArray {\n", " return DoubleArray(num) { i -> start + i * (stop - start) / (num - 1) }\n", "}\n", "\n", "fun meshgrid(x: DoubleArray, y: DoubleArray): Pair