Diagnostics and Plots

Generally, a Warp user should, where possible, use the numerous already developed diagnostic scripts to generate diagnostics with associated plots and modify/extend those scripts in cases where they are not sufficiently general. Then other uses can benefit from your effort. This pattern of generating scripts has resulted in an extensive library of debugged diagnostics presently part of Warp to the benefit of all users. It is likely that what you need, or something close to modify to produce what you might need, exists in the code. The python interpreter interface to Warp extended by the functionality of Numpy, the Gist graphics package, and the library of scripts and interpreter linked compiled code functions provide a highly flexible platform to efficiently extend and debug diagnostics.

To get started, names of diagnostic scripts can be found by executing:

warphelp() # Lists basic functions including some diagnostics

warpscripts() # Lists scripts callable including many diagnostics

Information on various diagnostic and plotting functions in Warp is provided in the linked sections below:

Basic plotting

Lab window moments

Outputting particle data

Plotting particles

Plotting fields

3D visualization

Timing Warp

Further information can also be found in Script Information and by examining python scripts in the scripts directory of the source code.