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

3D Visualization

Surface Plots

; 3D surface
surface, z

; Wireframe
wireframe, z

; Mesh plot
mesh, z, color_table='rainbow'

3D Documentation

Scientific Visualization

Specialized scientific plotting:

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