-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3D curtain in Plotly #51
Labels
good future ref
good reference for later
Comments
To just get a scatter (data point cloud): import plotly.graph_objects as go
lon=MVBS_ds.longitude.values[:]
lat=MVBS_ds.latitude.values[:]
depth=MVBS_ds.echo_range.values[:]
plotly_data=[]
for depth in MVBS_ds_spec.echo_range.values:
plotly_data.append(go.Scatter3d(x=lon, y=lat, z=np.full(len(lon),-depth),
mode='markers',
marker=dict(
color=MVBS_ds.sel(echo_range=depth).Sv.values,
colorscale='Jet',
opacity=0.5)))
fig = go.Figure(data=data)
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two ways to create a 3D curtain in Plotly.
Every single surface comprises a ribbon. Create ribbons for every depth unit.
use i, j, k indices to conncet three points as a triangle
The text was updated successfully, but these errors were encountered: