CLI reference

usage: demesdraw [-h] [--version] {tubes,size_history} ...

Draw a Demes model.

positional arguments:
  {tubes,size_history}
    tubes               Plot a demes-as-tubes schematic of the model and the
                        demes' relationships.
    size_history        Plot population size as a function of time for each
                        deme in the model.

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

demesdraw tubes

usage: demesdraw tubes [-h] [--log-time] [--aspect ASPECT] [--scale SCALE]
                       [--title TITLE] [--scale-bar]
                       model.yaml [figure.img]

Plot a demes-as-tubes schematic of the model and the demes' relationships.

positional arguments:
  model.yaml       Filename of the model. The special value '-' may be used to
                   read from stdin. The file may be in any format supported by
                   the demes library.
  figure.img       The filename for the image. The file extension determines
                   the filetype, and can be any format supported by Matplotlib
                   (e.g. pdf, svg, png). If no file is specified, an
                   interactive plot window will be opened.

options:
  -h, --help       show this help message and exit
  --log-time       Use a log-10 scale for the time axis.
  --aspect ASPECT  Set the aspect ratio (height/width) of the plot.
  --scale SCALE    Scale the figure size by the given value.
  --title TITLE    Set the title of the figure to the given string.
  --scale-bar      Draw a scale bar that indicates population size.

demesdraw size_history

usage: demesdraw size_history [-h] [--log-time] [--aspect ASPECT]
                              [--scale SCALE] [--title TITLE]
                              model.yaml [figure.img]

Plot population size as a function of time for each deme in the model.

positional arguments:
  model.yaml       Filename of the model. The special value '-' may be used to
                   read from stdin. The file may be in any format supported by
                   the demes library.
  figure.img       The filename for the image. The file extension determines
                   the filetype, and can be any format supported by Matplotlib
                   (e.g. pdf, svg, png). If no file is specified, an
                   interactive plot window will be opened.

options:
  -h, --help       show this help message and exit
  --log-time       Use a log-10 scale for the time axis.
  --aspect ASPECT  Set the aspect ratio (height/width) of the plot.
  --scale SCALE    Scale the figure size by the given value.
  --title TITLE    Set the title of the figure to the given string.