Analysis plots
What each plot under the side view shows, and the other results RayCrafter works out.
Contents: Where the plots are · About the plots · Image and focus · Contrast and wavefront · Across the field · Distortion · Vignetting · Back aperture · Colour · Collimated output · Transmission and dispersion · Image simulation
Check important results elsewhere. RayCrafter is pre-alpha and has not yet been validated in detail against Zemax. See known problems.
Where the plots are
Under the side view are three groups of plots. Click a tab to choose what each group shows:
| Group | Tabs |
|---|---|
| Left | Spot, Through-focus, Focus rays, Detector, PSF |
| Middle | MTF, Ray fan, Footprint, RMS/field, Vignetting |
| Right | Field curvature, Distortion, Back aperture, Strehl/field, Colour |
While you add a catalogue lens or edit fields, the lens browser or field panel takes the place of the right-hand group. The plots are described below, starting with the common rules.

About the plots
- Which fields. The spot diagram, detector, footprint and back aperture show every field. The others show the selected field. The colour plots, rays at focus, RMS/field and Strehl/field take in every wavelength of the design’s fields.
- Scanned plots. The footprint, RMS/field, vignetting, Strehl/field and beam-centre plots swing the selected field through a range of angles. A beam swings about the point where it crosses the source plane, so put the source plane at a scan mirror; while the fields fill the aperture stop it swings about the stop. The range reaches the largest angle among your fields, or 10° if they are all on the axis.
- Speed. The spot, through-focus and detector plots update as you drag. The rest are worked out only while their tab is showing, fade while you drag and refresh when you stop.
- Explanations. The web report shows these plots with a ? button that explains how to read each one.
Image and focus
- Spot: where the rays land on the image plane, with the Airy disc circle for comparison. Each field is centred on its own spot.
- Through-focus: how the spot size changes as the image plane moves.
- Focus rays: a close-up side view of the rays near the image plane, at every wavelength, with each wavelength’s best focus as a pale line. Scroll to zoom, drag to move, and use Reset view to go back. Lines apart show axial colour.
- Detector: where each field’s light meets the image plane and what share lands on the detector.
- Field curvature: best-focus position against field angle.
Contrast and wavefront
- MTF: modulation transfer function of the selected field, against the diffraction limit.
- Ray fan: ray error across the pupil.
- PSF: the image of a single point of light, with diffraction, on a linear or logarithmic scale. The dashed circle is the Airy radius. The title gives the Strehl ratio (1 is perfect, 0.8 or more counts as diffraction limited); hover for the other numbers.
- Strehl/field: the Strehl ratio, or the RMS wavefront error in waves, against field angle for each wavelength.

The PSF and Strehl ratio are computed from RayCrafter’s own rays, so a beam’s offset, a filled stop and vignetting count. They describe the current image plane, so focus first. The MTF tab ignores a field’s offset and is not to be trusted off the axis in designs with paraxial lenses.
Across the field
- Footprint: the image plane seen face-on, with everything where it really lands. The grey line is the path of the chief ray as the selected field is swung up and down; the pale grid is where it goes when scanned in x and y together, as by a two-mirror scanner. The title gives the field of view in this plane.
- RMS/field: RMS spot radius against field angle for each wavelength, with its Airy radius dashed. A hollow marker means some light is cut off at that angle.
Distortion
Distortion shows how a square grid is imaged (Grid), or the distortion Against height or Against angle.
- With a finite object the grid is of object points.
- With beams it is a grid of field angles, compared with f-tan θ (an ideal camera lens) or f-θ (an ideal scan lens); choose which in the drop-down. It needs a field off the axis.
- It is measured against the magnification, or focal length, near the axis. Tick Spot centroid to locate image points by the middle of their spots rather than by their chief rays.
Vignetting and relative illumination
The Vignetting tab shows, against field angle:
- the share of the selected field’s light that is transmitted;
- what is lost at each lens rim or aperture that cuts any off;
- the relative illumination: how bright the image of an evenly bright scene is, compared with on the axis, with the aperture filled (the chosen stop, or else the front of the first lens). There is none for a collimated output or a converging or diverging beam.
Hover over the plot for the assumptions. Losses in the glass are not included.

Back aperture
Right-click a lens or aperture and tick Back aperture. The tab then has two views:
- Footprint: each field’s beam on that element, with the share that falls inside its clear aperture.
- Beam centre: where the middle of the beam is as the selected field is scanned. A flat line on zero means the scan mirror is imaged onto this plane.

For beams at several angles that leave collimated, the web report adds a section, Where the beams cross: how far the beam moves against scan angle, and how far each plane is from where an ideal 4f relay would have it.
Colour
The Colour tab takes the selected field at every wavelength of the design, each with equal power, so it has most to show when your fields differ in wavelength.
- Spot: all wavelengths together, with the combined RMS radius and the lateral colour.
- MTF: the polychromatic MTF, with the diffraction limit.
- Focus shift: the best focus against wavelength.

Collimated output
When the selected field leaves the last lens collimated (an RMS divergence below 1 mrad), spots and other image-plane results say little. The status bar then shows, in their place:
- the divergence, with the diffraction angle as the limit;
- the beam’s diameter, and its ratio to the input diameter;
- the angular magnification.
Autofocus treats such an output differently, and a gap can be found that collimates the light.
Transmission and pulse dispersion
With at least one lens of real glass, a button at the right of the status bar gives the transmission of the lenses and the group delay dispersion (GDD) of their glass, along the central ray of the selected field. Press it for the numbers of each lens, and for how long a short pulse of the duration you type becomes.

- A coated surface is assumed to reflect the limit its vendor publishes for that coating, within the coating’s range, at normal incidence. Outside the range it is treated as uncoated.
- GDD counts the lenses on the bench only: not coatings, air, other parts or third-order dispersion. Paraxial lenses contain no glass.
- The web report lists every surface and glass, and plots both against wavelength.
Image simulation
View → Image simulation shows a picture beside the design’s image of it on the current image plane, with blur, distortion, colour fringes and shading all at once.
- Keep the Chessboard, or Load picture.
- Set the Width (degrees for beams, mm for a finite object). Automatic puts the picture’s corners at the farthest field.
- Choose the Light and the number of pixels, and press Render. It takes a few seconds; Stop ends it.

The simulation is geometric: it has no diffraction, so a very good system looks perfect, and losses in the glass are not included. A collimated output makes no image. The picture does not update by itself: press Render again after changing the design.