diff --git a/examples/00-load/create-explicit-structured-grid.ipynb b/examples/00-load/create-explicit-structured-grid.ipynb index f003c04..f86630a 100644 --- a/examples/00-load/create-explicit-structured-grid.ipynb +++ b/examples/00-load/create-explicit-structured-grid.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-geometric-objects.ipynb b/examples/00-load/create-geometric-objects.ipynb index a34e4cd..f34eb89 100644 --- a/examples/00-load/create-geometric-objects.ipynb +++ b/examples/00-load/create-geometric-objects.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-kochanek-spline.ipynb b/examples/00-load/create-kochanek-spline.ipynb index 584a0ea..52fef9a 100644 --- a/examples/00-load/create-kochanek-spline.ipynb +++ b/examples/00-load/create-kochanek-spline.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-parametric-geometric-objects.ipynb b/examples/00-load/create-parametric-geometric-objects.ipynb index 5306de8..2e64afe 100644 --- a/examples/00-load/create-parametric-geometric-objects.ipynb +++ b/examples/00-load/create-parametric-geometric-objects.ipynb @@ -478,7 +478,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-pixel-art.ipynb b/examples/00-load/create-pixel-art.ipynb index f1cfa29..7bfdb8f 100644 --- a/examples/00-load/create-pixel-art.ipynb +++ b/examples/00-load/create-pixel-art.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-platonic-solids.ipynb b/examples/00-load/create-platonic-solids.ipynb index 6034f6a..01f8e46 100644 --- a/examples/00-load/create-platonic-solids.ipynb +++ b/examples/00-load/create-platonic-solids.ipynb @@ -89,7 +89,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-point-cloud.ipynb b/examples/00-load/create-point-cloud.ipynb index d9d5f0f..4f79255 100644 --- a/examples/00-load/create-point-cloud.ipynb +++ b/examples/00-load/create-point-cloud.ipynb @@ -201,7 +201,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-pointset.ipynb b/examples/00-load/create-pointset.ipynb index e27116c..cf3a40f 100644 --- a/examples/00-load/create-pointset.ipynb +++ b/examples/00-load/create-pointset.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-poly.ipynb b/examples/00-load/create-poly.ipynb index 0c5cdef..ffb49fd 100644 --- a/examples/00-load/create-poly.ipynb +++ b/examples/00-load/create-poly.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-polydata-strips.ipynb b/examples/00-load/create-polydata-strips.ipynb index d890efb..1eb61e7 100644 --- a/examples/00-load/create-polydata-strips.ipynb +++ b/examples/00-load/create-polydata-strips.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-polyhedron.ipynb b/examples/00-load/create-polyhedron.ipynb index b7890b9..5dd9d1e 100644 --- a/examples/00-load/create-polyhedron.ipynb +++ b/examples/00-load/create-polyhedron.ipynb @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-spline.ipynb b/examples/00-load/create-spline.ipynb index eb1a10a..753528a 100644 --- a/examples/00-load/create-spline.ipynb +++ b/examples/00-load/create-spline.ipynb @@ -201,7 +201,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-structured-surface.ipynb b/examples/00-load/create-structured-surface.ipynb index eba0dba..7b1a95f 100644 --- a/examples/00-load/create-structured-surface.ipynb +++ b/examples/00-load/create-structured-surface.ipynb @@ -194,7 +194,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-surface-draped.ipynb b/examples/00-load/create-surface-draped.ipynb index edddcda..d74231e 100644 --- a/examples/00-load/create-surface-draped.ipynb +++ b/examples/00-load/create-surface-draped.ipynb @@ -122,7 +122,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-tri-surface.ipynb b/examples/00-load/create-tri-surface.ipynb index b1e34ae..0655fdb 100644 --- a/examples/00-load/create-tri-surface.ipynb +++ b/examples/00-load/create-tri-surface.ipynb @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-truss.ipynb b/examples/00-load/create-truss.ipynb index b8b70af..1ef4ae0 100644 --- a/examples/00-load/create-truss.ipynb +++ b/examples/00-load/create-truss.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-uniform-grid.ipynb b/examples/00-load/create-uniform-grid.ipynb index 5848337..35e09a1 100644 --- a/examples/00-load/create-uniform-grid.ipynb +++ b/examples/00-load/create-uniform-grid.ipynb @@ -89,7 +89,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/create-unstructured-surface.ipynb b/examples/00-load/create-unstructured-surface.ipynb index 113242e..ca4674a 100644 --- a/examples/00-load/create-unstructured-surface.ipynb +++ b/examples/00-load/create-unstructured-surface.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/linear-cells.ipynb b/examples/00-load/linear-cells.ipynb index e014b60..b962be3 100644 --- a/examples/00-load/linear-cells.ipynb +++ b/examples/00-load/linear-cells.ipynb @@ -190,7 +190,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/load-gltf.ipynb b/examples/00-load/load-gltf.ipynb index 688a576..685cefa 100644 --- a/examples/00-load/load-gltf.ipynb +++ b/examples/00-load/load-gltf.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/load-vrml.ipynb b/examples/00-load/load-vrml.ipynb index 12c9f46..6a5ae8c 100644 --- a/examples/00-load/load-vrml.ipynb +++ b/examples/00-load/load-vrml.ipynb @@ -64,7 +64,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/read-dolfin.ipynb b/examples/00-load/read-dolfin.ipynb index c613b7a..83fabe2 100644 --- a/examples/00-load/read-dolfin.ipynb +++ b/examples/00-load/read-dolfin.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/read-file.ipynb b/examples/00-load/read-file.ipynb index f5cea80..56611c7 100644 --- a/examples/00-load/read-file.ipynb +++ b/examples/00-load/read-file.ipynb @@ -222,7 +222,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/read-image.ipynb b/examples/00-load/read-image.ipynb index 19737eb..2e7d35c 100644 --- a/examples/00-load/read-image.ipynb +++ b/examples/00-load/read-image.ipynb @@ -93,7 +93,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/read-parallel.ipynb b/examples/00-load/read-parallel.ipynb index 2f7bb20..2b6dea4 100644 --- a/examples/00-load/read-parallel.ipynb +++ b/examples/00-load/read-parallel.ipynb @@ -122,7 +122,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/reader.ipynb b/examples/00-load/reader.ipynb index 8584048..e3bdc9c 100644 --- a/examples/00-load/reader.ipynb +++ b/examples/00-load/reader.ipynb @@ -18,6 +18,17 @@ "Load data using a Reader {#reader_example}\n========================\n" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -269,7 +280,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/terrain-mesh.ipynb b/examples/00-load/terrain-mesh.ipynb index fbf481e..b81bbd0 100644 --- a/examples/00-load/terrain-mesh.ipynb +++ b/examples/00-load/terrain-mesh.ipynb @@ -140,7 +140,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/00-load/wrap-trimesh.ipynb b/examples/00-load/wrap-trimesh.ipynb index 5299734..87f2d36 100644 --- a/examples/00-load/wrap-trimesh.ipynb +++ b/examples/00-load/wrap-trimesh.ipynb @@ -18,6 +18,17 @@ "Wrapping Other Objects {#wrap_trimesh}\n======================\n\nYou can wrap several other object types using pyvista including:\n\n- [numpy]{.title-ref} arrays\n- [trimesh.Trimesh]{.title-ref} meshes\n- VTK objects\n\nThis allows for the \\\"best of both worlds\\\" programming special to\nPython due to its modularity. If there\\'s some limitation of pyvista (or\ntrimesh), then you can adapt your scripts to use the best features of\nmore than one module.\n" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -89,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/boolean-operations.ipynb b/examples/01-filter/boolean-operations.ipynb index d917551..3e35b40 100644 --- a/examples/01-filter/boolean-operations.ipynb +++ b/examples/01-filter/boolean-operations.ipynb @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/cell-centers.ipynb b/examples/01-filter/cell-centers.ipynb index a3039ab..f2b939c 100644 --- a/examples/01-filter/cell-centers.ipynb +++ b/examples/01-filter/cell-centers.ipynb @@ -129,7 +129,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/clipping-with-surface.ipynb b/examples/01-filter/clipping-with-surface.ipynb index 8a9826c..347e1ec 100644 --- a/examples/01-filter/clipping-with-surface.ipynb +++ b/examples/01-filter/clipping-with-surface.ipynb @@ -122,7 +122,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/clipping.ipynb b/examples/01-filter/clipping.ipynb index 61dbd9c..81baef4 100644 --- a/examples/01-filter/clipping.ipynb +++ b/examples/01-filter/clipping.ipynb @@ -208,7 +208,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/collisions.ipynb b/examples/01-filter/collisions.ipynb index 05d618f..7dc818f 100644 --- a/examples/01-filter/collisions.ipynb +++ b/examples/01-filter/collisions.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/compute-normals.ipynb b/examples/01-filter/compute-normals.ipynb index 19f8899..88b16db 100644 --- a/examples/01-filter/compute-normals.ipynb +++ b/examples/01-filter/compute-normals.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/compute-volume.ipynb b/examples/01-filter/compute-volume.ipynb index 3526558..d7e0ec5 100644 --- a/examples/01-filter/compute-volume.ipynb +++ b/examples/01-filter/compute-volume.ipynb @@ -255,7 +255,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/connectivity.ipynb b/examples/01-filter/connectivity.ipynb index 6adda1c..e994e5c 100644 --- a/examples/01-filter/connectivity.ipynb +++ b/examples/01-filter/connectivity.ipynb @@ -287,7 +287,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/contouring.ipynb b/examples/01-filter/contouring.ipynb index e18fded..2f150c0 100644 --- a/examples/01-filter/contouring.ipynb +++ b/examples/01-filter/contouring.ipynb @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/decimate.ipynb b/examples/01-filter/decimate.ipynb index 18d2fcf..7c4a088 100644 --- a/examples/01-filter/decimate.ipynb +++ b/examples/01-filter/decimate.ipynb @@ -104,7 +104,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/distance-between-surfaces.ipynb b/examples/01-filter/distance-between-surfaces.ipynb index ebf5d2e..dca97b4 100644 --- a/examples/01-filter/distance-between-surfaces.ipynb +++ b/examples/01-filter/distance-between-surfaces.ipynb @@ -169,7 +169,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/extract-cells-inside-surface.ipynb b/examples/01-filter/extract-cells-inside-surface.ipynb index 2b93332..98a61bb 100644 --- a/examples/01-filter/extract-cells-inside-surface.ipynb +++ b/examples/01-filter/extract-cells-inside-surface.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/extract-edges.ipynb b/examples/01-filter/extract-edges.ipynb index 5743d52..4de808b 100644 --- a/examples/01-filter/extract-edges.ipynb +++ b/examples/01-filter/extract-edges.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/extract-surface.ipynb b/examples/01-filter/extract-surface.ipynb index 2b8c1a1..b77f197 100644 --- a/examples/01-filter/extract-surface.ipynb +++ b/examples/01-filter/extract-surface.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/extrude-rotate.ipynb b/examples/01-filter/extrude-rotate.ipynb index a5f9ddf..c53d442 100644 --- a/examples/01-filter/extrude-rotate.ipynb +++ b/examples/01-filter/extrude-rotate.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/extrude-trim.ipynb b/examples/01-filter/extrude-trim.ipynb index 372bdee..bd3bfe3 100644 --- a/examples/01-filter/extrude-trim.ipynb +++ b/examples/01-filter/extrude-trim.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/flying_edges.ipynb b/examples/01-filter/flying_edges.ipynb index 7e4dd26..e245ac7 100644 --- a/examples/01-filter/flying_edges.ipynb +++ b/examples/01-filter/flying_edges.ipynb @@ -44,7 +44,7 @@ }, "outputs": [], "source": [ - "a = 0.9\n\n\ndef spider_cage(x, y, z):\n x2 = x * x\n y2 = y * y\n x2_y2 = x2 + y2\n return (np.sqrt((x2 - y2) ** 2 / x2_y2 + 3 * (z * np.sin(a)) ** 2) - 3) ** 2 + 6 * (\n np.sqrt((x * y) ** 2 / x2_y2 + (z * np.cos(a)) ** 2) - 1.5\n ) ** 2\n\n\n# create a uniform grid to sample the function with\nn = 100\nx_min, y_min, z_min = -5, -5, -3\ngrid = pv.ImageData(\n dimensions=(n, n, n),\n spacing=(abs(x_min) / n * 2, abs(y_min) / n * 2, abs(z_min) / n * 2),\n origin=(x_min, y_min, z_min),\n)\nx, y, z = grid.points.T\n\n# sample and plot\nvalues = spider_cage(x, y, z)\nmesh = grid.contour([1], values, method='marching_cubes')\ndist = np.linalg.norm(mesh.points, axis=1)\nmesh.plot(scalars=dist, smooth_shading=True, specular=1, cmap=\"plasma\", show_scalar_bar=False)" + "a = 0.9\n\n\ndef spider_cage(x, y, z):\n x2 = x * x\n y2 = y * y\n x2_y2 = x2 + y2\n return (np.sqrt((x2 - y2) ** 2 / x2_y2 + 3 * (z * np.sin(a)) ** 2) - 3) ** 2 + 6 * (\n np.sqrt((x * y) ** 2 / x2_y2 + (z * np.cos(a)) ** 2) - 1.5\n ) ** 2\n\n\n# create a uniform grid to sample the function with\nn = 100\nx_min, y_min, z_min = -5, -5, -3\ngrid = pv.ImageData(\n dimensions=(n, n, n),\n spacing=(abs(x_min) / n * 2, abs(y_min) / n * 2, abs(z_min) / n * 2),\n origin=(x_min, y_min, z_min),\n)\nx, y, z = grid.points.T\n\n# sample and plot\nvalues = spider_cage(x, y, z)\nmesh = grid.contour([1], values, method='marching_cubes')\ndist = np.linalg.norm(mesh.points, axis=1)\nmesh.plot(scalars=dist, smooth_shading=True, cmap=\"plasma\", show_scalar_bar=False)" ] }, { @@ -62,7 +62,7 @@ }, "outputs": [], "source": [ - "phi = (1 + np.sqrt(5)) / 2\nphi2 = phi * phi\n\n\ndef barth_sextic(x, y, z):\n x2 = x * x\n y2 = y * y\n z2 = z * z\n arr = (\n 3 * (phi2 * x2 - y2) * (phi2 * y2 - z2) * (phi2 * z2 - x2)\n - (1 + 2 * phi) * (x2 + y2 + z2 - 1) ** 2\n )\n nan_mask = x2 + y2 + z2 > 3.1\n arr[nan_mask] = np.nan\n return arr\n\n\n# create a uniform grid to sample the function with\nn = 100\nk = 2.0\nx_min, y_min, z_min = -k, -k, -k\ngrid = pv.ImageData(\n dimensions=(n, n, n),\n spacing=(abs(x_min) / n * 2, abs(y_min) / n * 2, abs(z_min) / n * 2),\n origin=(x_min, y_min, z_min),\n)\nx, y, z = grid.points.T\n\n# sample and plot\nvalues = barth_sextic(x, y, z)\nmesh = grid.contour([0], values, method='flying_edges')\ndist = np.linalg.norm(mesh.points, axis=1)\nmesh.plot(scalars=dist, smooth_shading=True, specular=1, cmap=\"plasma\", show_scalar_bar=False)" + "phi = (1 + np.sqrt(5)) / 2\nphi2 = phi * phi\n\n\ndef barth_sextic(x, y, z):\n x2 = x * x\n y2 = y * y\n z2 = z * z\n arr = (\n 3 * (phi2 * x2 - y2) * (phi2 * y2 - z2) * (phi2 * z2 - x2)\n - (1 + 2 * phi) * (x2 + y2 + z2 - 1) ** 2\n )\n nan_mask = x2 + y2 + z2 > 3.1\n arr[nan_mask] = np.nan\n return arr\n\n\n# create a uniform grid to sample the function with\nn = 100\nk = 2.0\nx_min, y_min, z_min = -k, -k, -k\ngrid = pv.ImageData(\n dimensions=(n, n, n),\n spacing=(abs(x_min) / n * 2, abs(y_min) / n * 2, abs(z_min) / n * 2),\n origin=(x_min, y_min, z_min),\n)\nx, y, z = grid.points.T\n\n# sample and plot\nvalues = barth_sextic(x, y, z)\nmesh = grid.contour([0], values, method='flying_edges')\ndist = np.linalg.norm(mesh.points, axis=1)\nmesh.plot(scalars=dist, smooth_shading=True, cmap=\"plasma\", show_scalar_bar=False)" ] }, { @@ -80,7 +80,7 @@ }, "outputs": [], "source": [ - "def angle_to_range(angle):\n return -2 * np.sin(angle)\n\n\npl = pv.Plotter(window_size=[800, 800], off_screen=True)\n\npl.open_gif('barth_sextic.gif')\n\nfor angle in np.linspace(0, np.pi, 20, endpoint=False):\n # clear the plotter before adding each frame's mesh\n pl.clear()\n pl.enable_lightkit()\n mesh = grid.contour([angle_to_range(angle)], values, method='flying_edges')\n dist = np.linalg.norm(mesh.points, axis=1)\n pl.add_mesh(\n mesh,\n scalars=dist,\n smooth_shading=True,\n specular=1,\n rng=[0.5, 1.5],\n cmap=\"plasma\",\n show_scalar_bar=False,\n )\n pl.write_frame()\n\npl.close()" + "def angle_to_range(angle):\n return -2 * np.sin(angle)\n\n\npl = pv.Plotter(window_size=[800, 800], off_screen=True)\n\npl.open_gif('barth_sextic.gif')\n\nfor angle in np.linspace(0, np.pi, 20, endpoint=False):\n # clear the plotter before adding each frame's mesh\n pl.clear()\n pl.enable_lightkit()\n mesh = grid.contour([angle_to_range(angle)], values, method='flying_edges')\n dist = np.linalg.norm(mesh.points, axis=1)\n pl.add_mesh(\n mesh,\n scalars=dist,\n smooth_shading=True,\n rng=[0.5, 1.5],\n cmap=\"plasma\",\n show_scalar_bar=False,\n )\n pl.write_frame()\n\npl.close()" ] } ], @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/gaussian-smoothing.ipynb b/examples/01-filter/gaussian-smoothing.ipynb index f472e98..2cad787 100644 --- a/examples/01-filter/gaussian-smoothing.ipynb +++ b/examples/01-filter/gaussian-smoothing.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/geodesic.ipynb b/examples/01-filter/geodesic.ipynb index 56e961a..5288593 100644 --- a/examples/01-filter/geodesic.ipynb +++ b/examples/01-filter/geodesic.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/glyphs.ipynb b/examples/01-filter/glyphs.ipynb index 69f018a..a872ca3 100644 --- a/examples/01-filter/glyphs.ipynb +++ b/examples/01-filter/glyphs.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/glyphs_table.ipynb b/examples/01-filter/glyphs_table.ipynb index 390ecf6..a85d096 100644 --- a/examples/01-filter/glyphs_table.ipynb +++ b/examples/01-filter/glyphs_table.ipynb @@ -64,7 +64,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/gradients.ipynb b/examples/01-filter/gradients.ipynb index 32644b4..551da45 100644 --- a/examples/01-filter/gradients.ipynb +++ b/examples/01-filter/gradients.ipynb @@ -147,7 +147,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/image-fft-perlin-noise.ipynb b/examples/01-filter/image-fft-perlin-noise.ipynb index 51e9890..0f12449 100644 --- a/examples/01-filter/image-fft-perlin-noise.ipynb +++ b/examples/01-filter/image-fft-perlin-noise.ipynb @@ -179,7 +179,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/image-fft.ipynb b/examples/01-filter/image-fft.ipynb index e85e883..f016b25 100644 --- a/examples/01-filter/image-fft.ipynb +++ b/examples/01-filter/image-fft.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/integrate-data.ipynb b/examples/01-filter/integrate-data.ipynb index baa76d2..90c0de5 100644 --- a/examples/01-filter/integrate-data.ipynb +++ b/examples/01-filter/integrate-data.ipynb @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/interpolate.ipynb b/examples/01-filter/interpolate.ipynb index 07391f6..5a5925c 100644 --- a/examples/01-filter/interpolate.ipynb +++ b/examples/01-filter/interpolate.ipynb @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/mesh-quality.ipynb b/examples/01-filter/mesh-quality.ipynb index d3a2544..1128def 100644 --- a/examples/01-filter/mesh-quality.ipynb +++ b/examples/01-filter/mesh-quality.ipynb @@ -75,7 +75,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/poly-ray-trace.ipynb b/examples/01-filter/poly-ray-trace.ipynb index a1ac233..ddadacc 100644 --- a/examples/01-filter/poly-ray-trace.ipynb +++ b/examples/01-filter/poly-ray-trace.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/project-plane.ipynb b/examples/01-filter/project-plane.ipynb index f321317..f952bee 100644 --- a/examples/01-filter/project-plane.ipynb +++ b/examples/01-filter/project-plane.ipynb @@ -64,7 +64,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/reflect.ipynb b/examples/01-filter/reflect.ipynb index e17f3c0..18fa824 100644 --- a/examples/01-filter/reflect.ipynb +++ b/examples/01-filter/reflect.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/resample.ipynb b/examples/01-filter/resample.ipynb index dfbe077..8ff3b72 100644 --- a/examples/01-filter/resample.ipynb +++ b/examples/01-filter/resample.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/rotate.ipynb b/examples/01-filter/rotate.ipynb index 8ab768c..ac84047 100644 --- a/examples/01-filter/rotate.ipynb +++ b/examples/01-filter/rotate.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/sampling_functions_2d.ipynb b/examples/01-filter/sampling_functions_2d.ipynb index 23a418c..f3526a1 100644 --- a/examples/01-filter/sampling_functions_2d.ipynb +++ b/examples/01-filter/sampling_functions_2d.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/sampling_functions_3d.ipynb b/examples/01-filter/sampling_functions_3d.ipynb index c85c864..f0459d8 100644 --- a/examples/01-filter/sampling_functions_3d.ipynb +++ b/examples/01-filter/sampling_functions_3d.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/slicing.ipynb b/examples/01-filter/slicing.ipynb index ad630dd..42aa8e2 100644 --- a/examples/01-filter/slicing.ipynb +++ b/examples/01-filter/slicing.ipynb @@ -266,7 +266,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/streamlines.ipynb b/examples/01-filter/streamlines.ipynb index 24afb7e..31147ae 100644 --- a/examples/01-filter/streamlines.ipynb +++ b/examples/01-filter/streamlines.ipynb @@ -252,7 +252,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/streamlines_2D.ipynb b/examples/01-filter/streamlines_2D.ipynb index 28a21be..60c009a 100644 --- a/examples/01-filter/streamlines_2D.ipynb +++ b/examples/01-filter/streamlines_2D.ipynb @@ -143,7 +143,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/subdivide.ipynb b/examples/01-filter/subdivide.ipynb index 6c112c4..50afd61 100644 --- a/examples/01-filter/subdivide.ipynb +++ b/examples/01-filter/subdivide.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/surface-smoothing.ipynb b/examples/01-filter/surface-smoothing.ipynb index 16f81de..a7f7485 100644 --- a/examples/01-filter/surface-smoothing.ipynb +++ b/examples/01-filter/surface-smoothing.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/surface_reconstruction.ipynb b/examples/01-filter/surface_reconstruction.ipynb index 3f2a733..2429926 100644 --- a/examples/01-filter/surface_reconstruction.ipynb +++ b/examples/01-filter/surface_reconstruction.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/using-filters.ipynb b/examples/01-filter/using-filters.ipynb index 9635b43..ec563c4 100644 --- a/examples/01-filter/using-filters.ipynb +++ b/examples/01-filter/using-filters.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/voxelize.ipynb b/examples/01-filter/voxelize.ipynb index 9a338d9..f23dffa 100644 --- a/examples/01-filter/voxelize.ipynb +++ b/examples/01-filter/voxelize.ipynb @@ -133,7 +133,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/01-filter/warp-by-vector.ipynb b/examples/01-filter/warp-by-vector.ipynb index fc6d127..12d5dca 100644 --- a/examples/01-filter/warp-by-vector.ipynb +++ b/examples/01-filter/warp-by-vector.ipynb @@ -71,7 +71,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/anti-aliasing.ipynb b/examples/02-plot/anti-aliasing.ipynb index bfea88d..a114624 100644 --- a/examples/02-plot/anti-aliasing.ipynb +++ b/examples/02-plot/anti-aliasing.ipynb @@ -143,7 +143,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/backface_props.ipynb b/examples/02-plot/backface_props.ipynb index 2a694a2..8be554b 100644 --- a/examples/02-plot/backface_props.ipynb +++ b/examples/02-plot/backface_props.ipynb @@ -143,7 +143,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/background_image.ipynb b/examples/02-plot/background_image.ipynb index ef2c59a..081d506 100644 --- a/examples/02-plot/background_image.ipynb +++ b/examples/02-plot/background_image.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/blurring.ipynb b/examples/02-plot/blurring.ipynb index bd52511..015d788 100644 --- a/examples/02-plot/blurring.ipynb +++ b/examples/02-plot/blurring.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/bounds.ipynb b/examples/02-plot/bounds.ipynb index 00d1e41..6b3280b 100644 --- a/examples/02-plot/bounds.ipynb +++ b/examples/02-plot/bounds.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/chart_basics.ipynb b/examples/02-plot/chart_basics.ipynb index 3ff679b..f236542 100644 --- a/examples/02-plot/chart_basics.ipynb +++ b/examples/02-plot/chart_basics.ipynb @@ -26,7 +26,7 @@ }, "outputs": [], "source": [ - "import numpy as np\n\nimport pyvista as pv\n\nrng = np.random.default_rng(1) # Seeded random number generator for consistent data generation" + "import numpy as np\n\nimport pyvista as pv\n\n\nrng = np.random.default_rng(1) # Seeded random number generator for consistent data generation" ] }, { @@ -226,7 +226,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/chart_overlays.ipynb b/examples/02-plot/chart_overlays.ipynb index afee2a8..aba8cf3 100644 --- a/examples/02-plot/chart_overlays.ipynb +++ b/examples/02-plot/chart_overlays.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/clear.ipynb b/examples/02-plot/clear.ipynb index de5c574..663c018 100644 --- a/examples/02-plot/clear.ipynb +++ b/examples/02-plot/clear.ipynb @@ -93,7 +93,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/cmap.ipynb b/examples/02-plot/cmap.ipynb index e6a6d21..1a853b7 100644 --- a/examples/02-plot/cmap.ipynb +++ b/examples/02-plot/cmap.ipynb @@ -179,7 +179,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/color_cycler.ipynb b/examples/02-plot/color_cycler.ipynb index 5f8fc0b..e8703dc 100644 --- a/examples/02-plot/color_cycler.ipynb +++ b/examples/02-plot/color_cycler.ipynb @@ -179,7 +179,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/composite-picking.ipynb b/examples/02-plot/composite-picking.ipynb index 8b25d5b..0a95c34 100644 --- a/examples/02-plot/composite-picking.ipynb +++ b/examples/02-plot/composite-picking.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/depth-peeling.ipynb b/examples/02-plot/depth-peeling.ipynb index 2345d68..793a0b7 100644 --- a/examples/02-plot/depth-peeling.ipynb +++ b/examples/02-plot/depth-peeling.ipynb @@ -104,7 +104,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/depth_of_field.ipynb b/examples/02-plot/depth_of_field.ipynb index 3289452..0528f2e 100644 --- a/examples/02-plot/depth_of_field.ipynb +++ b/examples/02-plot/depth_of_field.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/distance-along-spline.ipynb b/examples/02-plot/distance-along-spline.ipynb index 10c68b2..93b751a 100644 --- a/examples/02-plot/distance-along-spline.ipynb +++ b/examples/02-plot/distance-along-spline.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/distance_measurement.ipynb b/examples/02-plot/distance_measurement.ipynb index 5de9105..3d4e125 100644 --- a/examples/02-plot/distance_measurement.ipynb +++ b/examples/02-plot/distance_measurement.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/edges.ipynb b/examples/02-plot/edges.ipynb index 196e910..755050d 100644 --- a/examples/02-plot/edges.ipynb +++ b/examples/02-plot/edges.ipynb @@ -53,7 +53,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/edl.ipynb b/examples/02-plot/edl.ipynb index 944ad20..44b1512 100644 --- a/examples/02-plot/edl.ipynb +++ b/examples/02-plot/edl.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/element-picking.ipynb b/examples/02-plot/element-picking.ipynb index aaf0786..27689aa 100644 --- a/examples/02-plot/element-picking.ipynb +++ b/examples/02-plot/element-picking.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/floors.ipynb b/examples/02-plot/floors.ipynb index c9140f6..272d10b 100644 --- a/examples/02-plot/floors.ipynb +++ b/examples/02-plot/floors.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/ghost-cells.ipynb b/examples/02-plot/ghost-cells.ipynb index 50e52f1..e626c3e 100644 --- a/examples/02-plot/ghost-cells.ipynb +++ b/examples/02-plot/ghost-cells.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/gif.ipynb b/examples/02-plot/gif.ipynb index d8980f1..6f66e10 100644 --- a/examples/02-plot/gif.ipynb +++ b/examples/02-plot/gif.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/image_depth.ipynb b/examples/02-plot/image_depth.ipynb index a456306..a45c93b 100644 --- a/examples/02-plot/image_depth.ipynb +++ b/examples/02-plot/image_depth.ipynb @@ -93,7 +93,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/interpolate-before-map.ipynb b/examples/02-plot/interpolate-before-map.ipynb index e1f7d3f..cfac783 100644 --- a/examples/02-plot/interpolate-before-map.ipynb +++ b/examples/02-plot/interpolate-before-map.ipynb @@ -125,7 +125,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/isovalue.ipynb b/examples/02-plot/isovalue.ipynb index 4c67117..98ea1da 100644 --- a/examples/02-plot/isovalue.ipynb +++ b/examples/02-plot/isovalue.ipynb @@ -129,7 +129,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/labels.ipynb b/examples/02-plot/labels.ipynb index 4407c8d..9b43906 100644 --- a/examples/02-plot/labels.ipynb +++ b/examples/02-plot/labels.ipynb @@ -26,7 +26,7 @@ }, "outputs": [], "source": [ - "import numpy as np\n\nimport pyvista as pv\n\nfrom pyvista import examples" + "import numpy as np\n\nimport pyvista as pv\n\n\nfrom pyvista import examples" ] }, { @@ -165,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/lighting_mesh.ipynb b/examples/02-plot/lighting_mesh.ipynb index 71543be..7d3fccd 100644 --- a/examples/02-plot/lighting_mesh.ipynb +++ b/examples/02-plot/lighting_mesh.ipynb @@ -161,7 +161,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/linked.ipynb b/examples/02-plot/linked.ipynb index cd7c063..0e8236b 100644 --- a/examples/02-plot/linked.ipynb +++ b/examples/02-plot/linked.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/lookup-table.ipynb b/examples/02-plot/lookup-table.ipynb index 1f01c6c..cb5bb38 100644 --- a/examples/02-plot/lookup-table.ipynb +++ b/examples/02-plot/lookup-table.ipynb @@ -26,7 +26,7 @@ }, "outputs": [], "source": [ - "import pyvista as pv\nfrom pyvista import examples\n\n# download an example dataset\nbracket = examples.download_fea_bracket().cell_data_to_point_data()\nbracket" + "import pyvista as pv\nfrom pyvista import examples\n\n\n# download an example dataset\nbracket = examples.download_fea_bracket().cell_data_to_point_data()\nbracket" ] }, { @@ -208,7 +208,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/mesh-picking.ipynb b/examples/02-plot/mesh-picking.ipynb index f93375c..ab9514a 100644 --- a/examples/02-plot/mesh-picking.ipynb +++ b/examples/02-plot/mesh-picking.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/movie.ipynb b/examples/02-plot/movie.ipynb index 2d4cd47..83b8b99 100644 --- a/examples/02-plot/movie.ipynb +++ b/examples/02-plot/movie.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/movie_glyphs.ipynb b/examples/02-plot/movie_glyphs.ipynb index f7bc0e1..9de4eca 100644 --- a/examples/02-plot/movie_glyphs.ipynb +++ b/examples/02-plot/movie_glyphs.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/moving_cmap.ipynb b/examples/02-plot/moving_cmap.ipynb index e63b9ed..b7f2fb1 100644 --- a/examples/02-plot/moving_cmap.ipynb +++ b/examples/02-plot/moving_cmap.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/multi-window.ipynb b/examples/02-plot/multi-window.ipynb index f579e30..be2cbc7 100644 --- a/examples/02-plot/multi-window.ipynb +++ b/examples/02-plot/multi-window.ipynb @@ -111,7 +111,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/opacity.ipynb b/examples/02-plot/opacity.ipynb index 0f9f15d..f2f4441 100644 --- a/examples/02-plot/opacity.ipynb +++ b/examples/02-plot/opacity.ipynb @@ -226,7 +226,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/orbit.ipynb b/examples/02-plot/orbit.ipynb index 1b407e4..b01c479 100644 --- a/examples/02-plot/orbit.ipynb +++ b/examples/02-plot/orbit.ipynb @@ -97,7 +97,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/ortho-slices.ipynb b/examples/02-plot/ortho-slices.ipynb index c4c4a5b..830effc 100644 --- a/examples/02-plot/ortho-slices.ipynb +++ b/examples/02-plot/ortho-slices.ipynb @@ -86,7 +86,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/pbr.ipynb b/examples/02-plot/pbr.ipynb index 9e2c6dc..3006537 100644 --- a/examples/02-plot/pbr.ipynb +++ b/examples/02-plot/pbr.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/plot-over-circular-arc.ipynb b/examples/02-plot/plot-over-circular-arc.ipynb index 773ffdb..58a68b6 100644 --- a/examples/02-plot/plot-over-circular-arc.ipynb +++ b/examples/02-plot/plot-over-circular-arc.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/plot-over-line.ipynb b/examples/02-plot/plot-over-line.ipynb index 34fcbe3..42011ca 100644 --- a/examples/02-plot/plot-over-line.ipynb +++ b/examples/02-plot/plot-over-line.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/point-cell-scalars.ipynb b/examples/02-plot/point-cell-scalars.ipynb index e49a2bb..dde40d4 100644 --- a/examples/02-plot/point-cell-scalars.ipynb +++ b/examples/02-plot/point-cell-scalars.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/point-clouds.ipynb b/examples/02-plot/point-clouds.ipynb index a80fb12..1963b13 100644 --- a/examples/02-plot/point-clouds.ipynb +++ b/examples/02-plot/point-clouds.ipynb @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/point-picking.ipynb b/examples/02-plot/point-picking.ipynb index 4ec782e..9386bc0 100644 --- a/examples/02-plot/point-picking.ipynb +++ b/examples/02-plot/point-picking.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/scalar-bars.ipynb b/examples/02-plot/scalar-bars.ipynb index 576d54b..dc330fe 100644 --- a/examples/02-plot/scalar-bars.ipynb +++ b/examples/02-plot/scalar-bars.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/screenshot.ipynb b/examples/02-plot/screenshot.ipynb index 90e4ab7..aee784d 100644 --- a/examples/02-plot/screenshot.ipynb +++ b/examples/02-plot/screenshot.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/shading.ipynb b/examples/02-plot/shading.ipynb index 63aab76..0eb53bd 100644 --- a/examples/02-plot/shading.ipynb +++ b/examples/02-plot/shading.ipynb @@ -116,7 +116,7 @@ }, "outputs": [], "source": [ - "# plot both the edges and the smoothed mesh\npl = pyvista.Plotter()\npl.enable_anti_aliasing()\npl.add_mesh(mesh, color='w', split_sharp_edges=True, pbr=True, metallic=1.0, roughness=0.5)\npl.show()" + "# plot both the edges and the smoothed mesh\n\n\npl = pyvista.Plotter()\npl.enable_anti_aliasing()\npl.add_mesh(mesh, color='w', split_sharp_edges=True, pbr=True, metallic=1.0, roughness=0.5)\npl.show()" ] } ], @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/silhouette.ipynb b/examples/02-plot/silhouette.ipynb index 7cb33bb..b9d168a 100644 --- a/examples/02-plot/silhouette.ipynb +++ b/examples/02-plot/silhouette.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/spherical.ipynb b/examples/02-plot/spherical.ipynb index 7da078a..457b06e 100644 --- a/examples/02-plot/spherical.ipynb +++ b/examples/02-plot/spherical.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/ssao.ipynb b/examples/02-plot/ssao.ipynb index e9ab66a..6393353 100644 --- a/examples/02-plot/ssao.ipynb +++ b/examples/02-plot/ssao.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/surface-picking.ipynb b/examples/02-plot/surface-picking.ipynb index 26f8b02..44cf1e7 100644 --- a/examples/02-plot/surface-picking.ipynb +++ b/examples/02-plot/surface-picking.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/texture.ipynb b/examples/02-plot/texture.ipynb index 4d17f9f..85c1632 100644 --- a/examples/02-plot/texture.ipynb +++ b/examples/02-plot/texture.ipynb @@ -291,7 +291,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/themes.ipynb b/examples/02-plot/themes.ipynb index 89ccd08..991baa2 100644 --- a/examples/02-plot/themes.ipynb +++ b/examples/02-plot/themes.ipynb @@ -287,7 +287,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/topo-map.ipynb b/examples/02-plot/topo-map.ipynb index 3b5ba43..5e00c05 100644 --- a/examples/02-plot/topo-map.ipynb +++ b/examples/02-plot/topo-map.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/vector-component.ipynb b/examples/02-plot/vector-component.ipynb index afe72cc..de602ea 100644 --- a/examples/02-plot/vector-component.ipynb +++ b/examples/02-plot/vector-component.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/vertices.ipynb b/examples/02-plot/vertices.ipynb index b183860..59c22f1 100644 --- a/examples/02-plot/vertices.ipynb +++ b/examples/02-plot/vertices.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/02-plot/volume.ipynb b/examples/02-plot/volume.ipynb index cf7aa08..61c7fd9 100644 --- a/examples/02-plot/volume.ipynb +++ b/examples/02-plot/volume.ipynb @@ -26,7 +26,7 @@ }, "outputs": [], "source": [ - "import pyvista as pv\nfrom pyvista import examples\n\n# Download a volumetric dataset\nvol = examples.download_knee_full()\nvol" + "import pyvista as pv\nfrom pyvista import examples\n\n\n# Download a volumetric dataset\nvol = examples.download_knee_full()\nvol" ] }, { @@ -244,7 +244,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/animation.ipynb b/examples/03-widgets/animation.ipynb index e7b8e93..314ed82 100644 --- a/examples/03-widgets/animation.ipynb +++ b/examples/03-widgets/animation.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/box-widget.ipynb b/examples/03-widgets/box-widget.ipynb index 3c90c12..3412f63 100644 --- a/examples/03-widgets/box-widget.ipynb +++ b/examples/03-widgets/box-widget.ipynb @@ -75,7 +75,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/checkbox-widget.ipynb b/examples/03-widgets/checkbox-widget.ipynb index 4f5871a..6c2623d 100644 --- a/examples/03-widgets/checkbox-widget.ipynb +++ b/examples/03-widgets/checkbox-widget.ipynb @@ -93,7 +93,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/clip-volume.ipynb b/examples/03-widgets/clip-volume.ipynb index 3ae9da2..63dc86f 100644 --- a/examples/03-widgets/clip-volume.ipynb +++ b/examples/03-widgets/clip-volume.ipynb @@ -18,6 +18,17 @@ "Clip Volume Widget {#clip_volume_widget_example}\n==================\n\nIf you have a structured dataset like a\n`pyvista.ImageData`{.interpreted-text role=\"class\"} or\n`pyvista.RectilinearGrid`{.interpreted-text role=\"class\"}, you can clip\nit using the `pyvista.Plotter.add_volume_clip_plane`{.interpreted-text\nrole=\"func\"} widget to better see the internal structure of the dataset.\n\n![image](../../images/gifs/volume-clip-plane-widget.gif)\n" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -107,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/line-widget.ipynb b/examples/03-widgets/line-widget.ipynb index 2b0b4a1..7db27a8 100644 --- a/examples/03-widgets/line-widget.ipynb +++ b/examples/03-widgets/line-widget.ipynb @@ -64,7 +64,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/multi-slider-widget.ipynb b/examples/03-widgets/multi-slider-widget.ipynb index d69ba84..5d9a2d2 100644 --- a/examples/03-widgets/multi-slider-widget.ipynb +++ b/examples/03-widgets/multi-slider-widget.ipynb @@ -68,7 +68,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/plane-widget.ipynb b/examples/03-widgets/plane-widget.ipynb index 6d73f10..22ac1c5 100644 --- a/examples/03-widgets/plane-widget.ipynb +++ b/examples/03-widgets/plane-widget.ipynb @@ -200,7 +200,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/slider-bar-widget.ipynb b/examples/03-widgets/slider-bar-widget.ipynb index 34d0ac0..4187a1f 100644 --- a/examples/03-widgets/slider-bar-widget.ipynb +++ b/examples/03-widgets/slider-bar-widget.ipynb @@ -114,7 +114,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/sphere-widget.ipynb b/examples/03-widgets/sphere-widget.ipynb index 48588aa..f203778 100644 --- a/examples/03-widgets/sphere-widget.ipynb +++ b/examples/03-widgets/sphere-widget.ipynb @@ -132,7 +132,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/03-widgets/spline-widget.ipynb b/examples/03-widgets/spline-widget.ipynb index d1d8275..6754c17 100644 --- a/examples/03-widgets/spline-widget.ipynb +++ b/examples/03-widgets/spline-widget.ipynb @@ -57,7 +57,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/actors.ipynb b/examples/04-lights/actors.ipynb index 7631883..fcbae46 100644 --- a/examples/04-lights/actors.ipynb +++ b/examples/04-lights/actors.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/attenuation.ipynb b/examples/04-lights/attenuation.ipynb index c229939..251ea75 100644 --- a/examples/04-lights/attenuation.ipynb +++ b/examples/04-lights/attenuation.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/beam_shape.ipynb b/examples/04-lights/beam_shape.ipynb index 65a6138..d2e18ee 100644 --- a/examples/04-lights/beam_shape.ipynb +++ b/examples/04-lights/beam_shape.ipynb @@ -125,7 +125,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/light_types.ipynb b/examples/04-lights/light_types.ipynb index 3b1e211..755435d 100644 --- a/examples/04-lights/light_types.ipynb +++ b/examples/04-lights/light_types.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/mesh_lighting.ipynb b/examples/04-lights/mesh_lighting.ipynb index abc47ee..f04ef96 100644 --- a/examples/04-lights/mesh_lighting.ipynb +++ b/examples/04-lights/mesh_lighting.ipynb @@ -71,7 +71,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/plotter_builtins.ipynb b/examples/04-lights/plotter_builtins.ipynb index 7cd5e74..a68952d 100644 --- a/examples/04-lights/plotter_builtins.ipynb +++ b/examples/04-lights/plotter_builtins.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/04-lights/shadows.ipynb b/examples/04-lights/shadows.ipynb index b6dbd36..3b5b5dd 100644 --- a/examples/04-lights/shadows.ipynb +++ b/examples/04-lights/shadows.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/98-common/project-points-tessellate.ipynb b/examples/98-common/project-points-tessellate.ipynb index cbd9663..529b0bd 100644 --- a/examples/98-common/project-points-tessellate.ipynb +++ b/examples/98-common/project-points-tessellate.ipynb @@ -82,7 +82,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/add-example.ipynb b/examples/99-advanced/add-example.ipynb index 6ae030c..d134cdf 100644 --- a/examples/99-advanced/add-example.ipynb +++ b/examples/99-advanced/add-example.ipynb @@ -15,7 +15,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Adding a New Gallery Example {#add_example_example}\n============================\n\nThis example demonstrates how to add a new PyVista [Sphinx\nGallery](https://sphinx-gallery.github.io/) example as well as being a\ntemplate that can be used in their creation.\n\nEach example should have a reference tag/key in the form:\n\n`.. __example:`\n\nThe `.. _` is necessary. Everything that follows is your reference tag,\nwhich can potentially be used within a docstring. As convention, we keep\nall references all in `snake_case`.\n\nThis section should give a brief overview of what the example is about\nand/or demonstrates. The title should be changed to reflect the topic\nyour example covers.\n\nNew examples should be added as python scripts to:\n\n`examples/-/.py`\n\n::: {.note}\n::: {.admonition-title}\nNote\n:::\n\nAvoid creating new directories unless absolutely necessary.If you *must*\ncreate a new folder, make sure to add a `README.txt` containing a\nreference, a title and a single sentence description of the folder.\nOtherwise the new folder will be ignored by Sphinx.\n:::\n\nExample file names should be hyphen separated snake case:\n\n`some-example.py`\n\nAfter this preamble is complete, the first code block begins. This is\nwhere you typically set up your imports.\n" + "Adding a New Gallery Example {#add_example_example}\n============================\n\nThis example demonstrates how to add a new PyVista [Sphinx\nGallery](https://sphinx-gallery.github.io/) example as well as being a\ntemplate that can be used in their creation.\n\nEach example should have a reference tag/key in the form:\n\n`.. __example:`\n\nThe `.. _` is necessary. Everything that follows is your reference tag,\nwhich can potentially be used within a docstring. As convention, we keep\nall references all in `snake_case`.\n\nThis section should give a brief overview of what the example is about\nand/or demonstrates. The title should be changed to reflect the topic\nyour example covers.\n\nNew examples should be added as python scripts to:\n\n`examples/-/.py`\n\n::: {.note}\n::: {.admonition-title}\nNote\n:::\n\nAvoid creating new directories unless absolutely necessary.If you *must*\ncreate a new folder, make sure to add a `README.txt` containing a\nreference, a title and a single sentence description of the folder.\nOtherwise the new folder will be ignored by Sphinx.\n:::\n\nExample file names should be hyphen separated snake case:\n\n`some-example.py`\n\nAfter this preamble is complete, the first code block begins. This is\nwhere you typically set up your imports.\n\n::: {.note}\n::: {.admonition-title}\nNote\n:::\n\nBy default, the documentation scrapper will generate both a static image\nand an interactive widget for each plot. If you want to turn this\nfeature off define at the top of your file:\n\n`# sphinx_gallery_start_ignore`\n\n`PYVISTA_GALLERY_FORCE_STATIC_IN_DOCUMENT = True`\n\n`# sphinx_gallery_end_ignore`\n\nIf you want to use static images only for some of your plots. Define\n`PYVISTA_GALLERY_FORCE_STATIC` before the `plot`/`show` command that\nproduces the image you want to turn into static.\n\n``` {.sourceCode .}\n...\npl.show() # this will be interactive plot\n\n...\npl.show() # this will be static plot\n```\n:::\n" ] }, { @@ -172,7 +172,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/antarctica-compare.ipynb b/examples/99-advanced/antarctica-compare.ipynb index dcc31f1..eb89855 100644 --- a/examples/99-advanced/antarctica-compare.ipynb +++ b/examples/99-advanced/antarctica-compare.ipynb @@ -26,7 +26,7 @@ }, "outputs": [], "source": [ - "import numpy as np\n\nimport pyvista as pv\nfrom pyvista import examples\n\n# Load the sample data\nmesh = examples.download_antarctica_velocity()\nmesh[\"magnitude\"] = np.linalg.norm(mesh[\"ssavelocity\"], axis=1)\nmesh" + "import numpy as np\n\n\n\nimport pyvista as pv\nfrom pyvista import examples\n\n# Load the sample data\nmesh = examples.download_antarctica_velocity()\nmesh[\"magnitude\"] = np.linalg.norm(mesh[\"ssavelocity\"], axis=1)\nmesh" ] }, { @@ -173,7 +173,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/atomic-orbitals.ipynb b/examples/99-advanced/atomic-orbitals.ipynb index 79e50c9..0340666 100644 --- a/examples/99-advanced/atomic-orbitals.ipynb +++ b/examples/99-advanced/atomic-orbitals.ipynb @@ -197,7 +197,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/customization-trame-toolbar.ipynb b/examples/99-advanced/customization-trame-toolbar.ipynb index 2393867..6f01ca1 100644 --- a/examples/99-advanced/customization-trame-toolbar.ipynb +++ b/examples/99-advanced/customization-trame-toolbar.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/extending-pyvista.ipynb b/examples/99-advanced/extending-pyvista.ipynb index 316c484..309677b 100644 --- a/examples/99-advanced/extending-pyvista.ipynb +++ b/examples/99-advanced/extending-pyvista.ipynb @@ -262,7 +262,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/fea-hertzian-contact-pressure.ipynb b/examples/99-advanced/fea-hertzian-contact-pressure.ipynb index 85dc78d..acee2ee 100644 --- a/examples/99-advanced/fea-hertzian-contact-pressure.ipynb +++ b/examples/99-advanced/fea-hertzian-contact-pressure.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/magnetic-fields.ipynb b/examples/99-advanced/magnetic-fields.ipynb index 6b1bcd7..329b00d 100644 --- a/examples/99-advanced/magnetic-fields.ipynb +++ b/examples/99-advanced/magnetic-fields.ipynb @@ -98,7 +98,7 @@ }, "outputs": [], "source": [ - "# Take the norm of the magnetic field\nscalars = np.linalg.norm(grid['B'], axis=1)\n\n# Customize the opacity to make it easier to visualize the strength of the\n# field nearby the coil\nopacity = 1 - np.geomspace(1.0, 0.05, 10)\n\n# Add this all to the plotter\npl = pv.Plotter()\npl.add_mesh(\n strl.tube(radius=0.1),\n color='black',\n)\npl.add_mesh(coil_block, render_lines_as_tubes=True, line_width=5, color='w')\nvol = pl.add_volume(\n grid,\n scalars=scalars,\n opacity=opacity,\n cmap='hot',\n show_scalar_bar=False,\n)\nvol.prop.interpolation_type = 'linear'\npl.camera.zoom(5)\npl.show()" + "# Take the norm of the magnetic field\nscalars = np.linalg.norm(grid['B'], axis=1)\n\n# Customize the opacity to make it easier to visualize the strength of the\n# field nearby the coil\nopacity = 1 - np.geomspace(1.0, 0.05, 10)\n\n\n\n# Add this all to the plotter\npl = pv.Plotter()\npl.add_mesh(\n strl.tube(radius=0.1),\n color='black',\n)\npl.add_mesh(coil_block, render_lines_as_tubes=True, line_width=5, color='w')\nvol = pl.add_volume(\n grid,\n scalars=scalars,\n opacity=opacity,\n cmap='hot',\n show_scalar_bar=False,\n)\nvol.prop.interpolation_type = 'linear'\npl.camera.zoom(5)\npl.show()" ] } ], @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/openfoam-cooling.ipynb b/examples/99-advanced/openfoam-cooling.ipynb index 3feef14..4e19f75 100644 --- a/examples/99-advanced/openfoam-cooling.ipynb +++ b/examples/99-advanced/openfoam-cooling.ipynb @@ -154,7 +154,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/openfoam-example.ipynb b/examples/99-advanced/openfoam-example.ipynb index d40f3f0..3a2fbc5 100644 --- a/examples/99-advanced/openfoam-example.ipynb +++ b/examples/99-advanced/openfoam-example.ipynb @@ -244,7 +244,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/openfoam-tubes.ipynb b/examples/99-advanced/openfoam-tubes.ipynb index 4153c5b..c1cdbd3 100644 --- a/examples/99-advanced/openfoam-tubes.ipynb +++ b/examples/99-advanced/openfoam-tubes.ipynb @@ -136,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/osmnx-example.ipynb b/examples/99-advanced/osmnx-example.ipynb index 2971875..c10da98 100644 --- a/examples/99-advanced/osmnx-example.ipynb +++ b/examples/99-advanced/osmnx-example.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/planets.ipynb b/examples/99-advanced/planets.ipynb index d4efb47..96640c0 100644 --- a/examples/99-advanced/planets.ipynb +++ b/examples/99-advanced/planets.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/plotting-algorithms.ipynb b/examples/99-advanced/plotting-algorithms.ipynb index 234a45b..44e46ca 100644 --- a/examples/99-advanced/plotting-algorithms.ipynb +++ b/examples/99-advanced/plotting-algorithms.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/pump-bracket.ipynb b/examples/99-advanced/pump-bracket.ipynb index b57903f..6c2ac7b 100644 --- a/examples/99-advanced/pump-bracket.ipynb +++ b/examples/99-advanced/pump-bracket.ipynb @@ -118,7 +118,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/ray-trace-moeller.ipynb b/examples/99-advanced/ray-trace-moeller.ipynb index 4d178fd..af18f86 100644 --- a/examples/99-advanced/ray-trace-moeller.ipynb +++ b/examples/99-advanced/ray-trace-moeller.ipynb @@ -75,7 +75,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/ray-trace.ipynb b/examples/99-advanced/ray-trace.ipynb index f68048e..78025ac 100644 --- a/examples/99-advanced/ray-trace.ipynb +++ b/examples/99-advanced/ray-trace.ipynb @@ -46,7 +46,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/sphere_eversion.ipynb b/examples/99-advanced/sphere_eversion.ipynb index a7ad8c0..595a7a0 100644 --- a/examples/99-advanced/sphere_eversion.ipynb +++ b/examples/99-advanced/sphere_eversion.ipynb @@ -100,7 +100,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/examples/99-advanced/warp-by-vector-eigenmodes.ipynb b/examples/99-advanced/warp-by-vector-eigenmodes.ipynb index f8665e3..361c0a4 100644 --- a/examples/99-advanced/warp-by-vector-eigenmodes.ipynb +++ b/examples/99-advanced/warp-by-vector-eigenmodes.ipynb @@ -89,7 +89,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.0" + "version": "3.12.1" } }, "nbformat": 4,