All examples
Visualization

Explore a synthetic Boulder surface

Plot illustrative spatial coordinates in a bounded native three dimensional chart.

Try rotating the plot.

Open the interactive plot, then drag inside it with your mouse to orbit the camera. Use Rotate plot X, Y and Z degree controls or their ±15° buttons to turn the plot around each axis. Reset view restores the angles and zoom set in the program.

Static source-authored capture 3 of 6 from 63 synthetic Boulder samples, with XYZ rotation, zoom and temperature shown in color.

This image is a static preview. Aner generates this viewer directly from the program below; open it with the button or image. It runs offline without the CSV or map packs. Recreating it requires the Aner 0.0.3 or newer runtime and local CSV.

Create this with Aner.

This is the exact downloadable .aner program that creates the interactive plot above. The same analysis runs in .anernb: .show() displays it in the notebook, and .save("boulder-3d.html") writes the standalone viewer. Use the source and notebook downloads above.

Set the angles, zoom and frame in your program for repeatable exports. Download PNG and Download SVG capture your on screen figure; Save interactive HTML keeps that view and every captured frame. Use the expandable Recreate this view in Aner settings to reproduce its camera, angles, zoom and frame in code.

plot_boulder_3d.aner
// Requires the matching CSV-frame-enabled native development runtime.
// Run from the project root containing examples/fixtures/plot_boulder_3d_frames.csv.
// Invented local coordinates and temperatures; no terrain or real sensor data.
import aner.data
import aner.plot

// Long format: one required observation per explicit time label and stable site ID.
var schema = data.schema()
schema = data.column(schema, "time", "String", false)
schema = data.column(schema, "site", "String", false)
schema = data.column(schema, "x", "Float64", false)
schema = data.column(schema, "y", "Float64", false)
schema = data.column(schema, "z", "Float64", false)
schema = data.column(schema, "value", "Float64", false)
let source = data.scan_csv("examples/fixtures/plot_boulder_3d_frames.csv", schema, missing: "NA")
let bounded = data.bounded(source, max_scanned_rows: 10001,
    max_read_bytes: 1048576, timeout_ms: 5000)
let table = data.collect(bounded, max_rows: 10000,
    max_bytes: 1048576, batch_rows: 64)

// First-seen time and site order define frames and stable observation indices.
// Later CSV frames deliberately shuffle rows; the adapter aligns them by site ID.
// No map pack is needed. The chart owns the complete collected snapshot.
let boulder = plot.scatter3d_frames_table(table)
    .labels("Local east (m)", "Local north (m)", "Height above invented datum (m)")
    .color_label("Temperature (°C)").color_limits(12.0, 24.0)
    .aspect("equal").view(azimuth: -45.0, elevation: 28.0)
    .rotation(x: 15.0, y: -10.0, z: 20.0)
    .view_zoom(zoom: 1.2).time_frame(frame: 2)
    .title("Boulder: six synthetic 3D temperature frames")
    .caption("63 invented sampling positions × 6 assigned UTC labels; synthetic temperatures, not terrain or municipal measurements. Equal metres; fixed 12–24 °C color scale.")
    .theme(plot.theme("light")).size(width: 1000, height: 680)
// Drag inside the interactive plot to orbit; Rotate plot X/Y/Z turns its axes.
// Starts at UI frame 3; Reset restores authored orientation/zoom, keeping the current frame.
// Aner writes the interactive page below directly from this Chart; no map packs are needed.
boulder.show()

// Aner exports this authored view: frame index 2 (UI frame 3), rotation and zoom.
// Existing files are never replaced.
// HTML embeds every capture, so viewing it needs neither this CSV nor map packs.
boulder.save("boulder-3d.html")
boulder.save("boulder-3d.svg")

Run step by step in VS Code.

The notebook separates CSV loading or observations and 3D chart construction into cells. It opens with empty outputs and shared variables, and needs no map packs.

  1. Install a compatible native Aner executable and VS Code extension using the editor guide. 3D chart construction and local rotation require the Aner 0.0.3 or newer runtime and editor.
  2. Download the .anernb notebook and open it in your VS Code project. If it appears as JSON, choose Reopen Editor With… → Aner Notebook.
  3. Select the Aner — notebook kernel and keep Shared variables active. Run code cells from top to bottom, or choose Run All. Later cells reuse the captured observations and chart values from earlier cells.
  4. Read the 3D plot below its producing cell. Drag inside the plot to orbit, or use Rotate plot X/Y/Z controls. Reset view restores the source angles and zoom. Rotation and zoom keep the captured data and scales unchanged.

After changing an earlier cell, rerun its dependent cells. Use Aner: Restart Notebook Session, then Run All, for a clean experiment. Saved outputs are historical; reopening the file starts without live variables. The notebook guide explains session state, inspection, and runtime controls.

Make it your experiment.

Use Aner 0.0.3 or newer. Save this program as examples/plot_boulder_3d.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.

Terminal
aner check examples/plot_boulder_3d.aner
aner run examples/plot_boulder_3d.aner

The aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.

Requires Aner 0.0.4 or newer supporting plot.scatter3d_frames_table and complete CSV backed Cartesian 3D scatter time frames and the matching VS Code extension for .anernb. The supplied analysis needs no map pack, credentials, server or connection. Native source and the Aner notebook share the same analysis. Source export uses fresh HTML and SVG filenames; existing files are never overwritten. Save the supplied CSV at examples/fixtures/plot_boulder_3d_frames.csv and the source at examples/plot_boulder_3d.aner. Run from the project root containing examples: relative CSV paths use the process or kernel working directory, not the source or notebook folder. A downloaded notebook needs the same CSV folder tree, or the same path edit in all three formats. The CSV is needed for construction; saved HTML embeds the snapshot and needs no CSV to view offline.

Map pack status
aner check examples/plot_boulder_3d.aner
aner run examples/plot_boulder_3d.aner

These observations are synthetic Cartesian teaching inputs; their units and coordinate conventions are stated in the example. They are not terrain or municipal measurements. Rotation changes only the view, and needs no map packs.

Read the 3D chart contracts
Install Aner