REPL Commands

All commands available at the CDFViewer> prompt, grouped by purpose. In the usage column, <argument> is required and [argument] is optional. Omitting an optional argument of a selection command opens an interactive picker in the terminal.

Any input line containing key=value pairs that does not start with a command name is applied as plot keyword arguments (see Customizing Plots).

Plot setup

CommandUsageDescription
vv [variable_name]Select a variable (v u,v selects both components of a vector plot)
pp [plot_type]Select a plot type
xx [variable_name]Select x-axis variable
yy [variable_name]Select y-axis variable
zz [variable_name]Select z-axis variable

Overlaid layers

Put over (or over2, over3, …) in front of the command you would give the base field, and it addresses that layer instead. base addresses the first layer explicitly. See Overlaying Fields.

CommandUsageDescription
overover [variable|off]Draw a second field on the same axis, or remove it; without an argument it reports what the layer draws
over.vover.v <variable>The same, spelled out (needed for a variable called off)
over.pover.p <plot_type>Plot type of the layer

Dimension selection

CommandUsageDescription
iselisel <dim_name> <index>Select index for a dimension
selsel <dim_name> <value>Select value for a dimension (nearest grid point)

Playback

CommandUsageDescription
playplay [dim_name]Toggle play/pause for animations
pdimpdim [dim_name]Set play dimension
speedspeed [value]Set play speed (without a value it prints the current speed)

Plot manipulation

CommandUsageDescription
deldel <kwarg_name>Delete keyword argument(s), restoring defaults
refreshrefreshRefresh the plot
resetresetReset plot settings to default
themetheme [name]Draw in another Makie theme (minimal, light, dark, black, ggplot2); without a name it reports the current one

Output

CommandUsageDescription
savefigsavefig [filename=<filename>, px_per_unit=<Int>, overwrite=<Bool>]Save the current figure
recordrecord [filename=<filename>, framerate=<Int>, range=<range>, overwrite=<Bool>]Record a movie
exportexportPrint command line arguments reproducing the session

Windows

CommandUsageDescription
showshowShow the figure window
hidehideHide the figure window
menumenuShow the menu window
hidemenuhidemenuHide the menu window

Information

CommandUsageDescription
helphelpList all commands
overviewoverviewShow an overview of the dataset
varsvarsList the variables
varinfovarinfo [variable_name]Show metadata of a variable
dimsdimsList dimensions with their current values
plotsplotsList the plot types
confconfShow the current plot configuration
kwargskwargs [category]List available keyword arguments (figure, axis, plot, colorbar, range)
getget <kwarg_name>Show the value of a keyword argument (a bare name reports the base layer; ask for over.colormap to reach an overlay)

Exiting

exit, quit, or q close the application.