Gallery

71 figures · Open a figure to explore its code.

layout (11)

geometry (10)

plotting (16)

maps (9)

networks (6)

text (5)

math (12)

api (2)

(particle_box)

Particle in a Box

A monochrome infinite-square-well illustration. Four sinusoidal wavefunctions sit between hatched walls, with matching state and energy labels. The vertical offsets are for comparison, not an energy scale.

baseline(index) supplies the same offset to the curve, guide, and labels. SymLine samples each sine curve over the well; 241 samples provide smooth traces without interpolating a separate spline. Polyline draws the diagonal hatching in data coordinates, as well as the well walls and baselines. Line, HLine, and VLine also use ambient data coordinates; space="local" opts out.

Plot measures the math tick labels and reserves their space. Explicit x limits include room for the side annotations, while the y axis and grid are disabled. The title, plot, and final formula use a centered stack with an explicit plot height; text keeps its specified font size.

View the source.