Graphics & Visualization
Comprehensive 2D and 3D graphics capabilities in XDL.
Overview
XDL provides powerful visualization features:
- 2D Graphics - Line plots, scatter plots, contours, histograms
- 3D Visualization - Surface plots, wireframes, isosurfaces
- Web Rendering - Browser-based graphics with WebGL
- Scientific Visualization - Specialized scientific plots
- Chart Integration - ECharts for interactive charts
2D Graphics
Basic Plotting
; Line plot
plot, x, y
; Scatter plot
plot, x, y, psym=3
; Multiple curves
plot, x, y1
oplot, x, y2, color='red'
Advanced 2D
- Graphics Overview - Implementation details
- Graphics Quick Reference - Command reference
- Charting Final Status - Chart features
- Charting Implementation - Implementation details
- ECharts Integration - Web charts
- Bezier Curves - Curve drawing
- Bezier Demo Features - Demo examples
- Graphics Demos - Demo status
3D Visualization
Surface Plots
; 3D surface
surface, z
; Wireframe
wireframe, z
; Mesh plot
mesh, z, color_table='rainbow'
3D Documentation
- 3D Visualization Complete - Full guide
- 3D Browser Guide - Browser rendering
- Three.js Integration - Advanced features
- 3D Performance - Optimization
- 3D Usage Guide - Using 3D features
- 3D Quick Start - Getting started
- 3D Showcase - Demonstrations
Scientific Visualization
Specialized scientific plotting:
- Scientific Visualization Guide - Scientific plots
- Advanced Visualization - Advanced features
- Advanced Reference - API reference
Rendering Backends
XDL supports multiple rendering backends:
| Backend | Description | Use Case |
|---|---|---|
| Native OpenGL | Desktop rendering | High-performance desktop apps |
| WebGL | Browser rendering | Web applications |
| Three.js | Advanced web graphics | Interactive 3D web apps |
| ECharts | Interactive charts | Data visualization dashboards |
Examples
- Graphics Demos - Demo examples
- Bezier Demo - Curve examples
- 3D Showcase - 3D demonstrations