3D Isosurface Plots in F#

How to format axes of 3D Isosurface plots in F# with Plotly.


Plotly is known for its graphing libraries, but it's also a broader ecosystem for building interactive data apps, AI data analysis tools, and deploying and hosting Dash apps. Explore the full set of tools and platforms designed to help turn data into action. Discover Plotly.

Note: We are retiring documentation for R, MATLAB, Julia, and F#. Learn more about this change here.

In [1]:
#r "nuget: Plotly.NET, 2.0.0-preview.6"
#r "nuget: Plotly.NET.Interactive, 2.0.0-preview.6"
Installed Packages
  • Plotly.NET, 2.0.0-preview.6
  • Plotly.NET.Interactive, 2.0.0-preview.6

Loading extensions from Plotly.NET.Interactive.dll

Added Kernel Extension including formatters for Plotly.NET charts.

Basic Isosurface

In [2]:
open System
open Plotly.NET

let isosurface3d =
        Trace3d.initIsoSurface (fun isosurface3d ->
            isosurface3d?x <- [0.;0.;0.;0.;1.;1.;1.;1.]
            isosurface3d?y <-[1.;0.;1.;0.;1.;0.;1.;0.]
            isosurface3d?z <-[1.;1.;0.;0.;1.;1.;0.;0.]
            isosurface3d?value<-[1.;2.;3.;4.;5.;6.;7.;8.]
            isosurface3d?opacity<-0.5
            isosurface3d?isomin<-2
            isosurface3d?isomax<-6
            isosurface3d?color <- "lightpink"
            isosurface3d
            )
        |> GenericChart.ofTraceObject
In [3]:
isosurface3d
Out[3]: