Scientific field visualization
Explore a scalar field sampled on a 3D grid.
Plotly · Class
go.Isosurface creates a 3D Plotly trace for scalar-field isosurfaces. Provide x, y, z, and value arrays, then control the displayed range with isomin and isomax.
Create a three-dimensional trace from four one-dimensional arrays: x, y, and z locate grid vertices, while value supplies the scalar field. Plotly draws the isosurfaces between the selected isomin and isomax limits; additional trace properties control coloring, contours, caps, and display.
go.Isosurface(*arg=None, *autocolorscale=None, *caps=None, *cauto=None, *cmax=None, *cmid=None, *cmin=None, *coloraxis=None, *colorbar=None, *colorscale=None, *contour=None, *customdata=None, *surface=None, *text=None, *uid=None, *uirevision=None, *value=None, *valuehoverformat=None, *visible=None, *x=None, *xhoverformat=None, *y=None, *yhoverformat=None, *z=None, *zhoverformat=None, **kwargs)| Name | Type | Description |
|---|---|---|
arg / keyword properties | object | Optional constructor and trace properties, including coordinate arrays, scalar values, isosurface limits, and display settings. |
A plotly.graph_objects.Isosurface trace object.
import plotly.graph_objects as go
fig = go.Figure(go.Isosurface(
x=[0,0,0,0,1,1,1,1],
y=[1,0,1,0,1,0,1,0],
z=[1,1,0,0,1,1,0,0],
value=[1,2,3,4,5,6,7,8],
isomin=2,
isomax=6,
))
fig.show()Creates an interactive isosurface from coordinates and scalar values, restricted to the range 2 through 6.
Explore a scalar field sampled on a 3D grid.
Inspect threshold-defined 3D regions interactively.
Show several scalar levels in one figure.
go.Isosurface visualize?go.Isosurface is a Plotly graph-object trace for displaying scalar-field isosurfaces in 3D. It takes x, y, z, and value arrays and draws surfaces between iso-min and iso-max values.
Follow-up: How would you represent the field? Use one-dimensional coordinate arrays and a same-length value array containing the scalar value at each grid vertex.
The constructor accepts trace properties such as isomin and isomax to define the displayed scalar range. It also exposes properties including caps, contour, colorscale, and surface for presentation and geometry controls.
Follow-up: What is the practical consequence of changing the range? It changes which scalar levels are used for the rendered isosurfaces.
The trace is constructed with go.Isosurface(...) and then placed in a go.Figure, as in go.Figure(go.Isosurface(...)). Calling fig.show() renders the interactive chart.
Follow-up: How can presentation be customized without changing the field? Adjust trace properties such as caps, colorscale, contour, or surface settings.
plotly.graph_objects.Figurego.Volumego.Mesh3d