3D Visualization
December 30, 2025 ยท View on GitHub
Create interactive 3D plots and visualizations.
What You'll Learn
- 3D scatter plots
- Surface plots
- Customizing 3D views
- Interactive controls
Prerequisites
3D Scatter Plots
import vsl.plot
mut plt := plot.Plot.new()
plt.scatter3d(x: x, y: y, z: z, mode: 'markers')
Surface Plots
import vsl.plot
mut plt := plot.Plot.new()
z_matrix := [[1.0, 2.0], [3.0, 4.0]]
plt.surface(z: z_matrix)
Interactive Features
- Rotate, zoom, pan
- Hover information
- Multiple traces
Next Steps
- Examples - Working examples