Plotters

The commands available for plotterparameters are:

$ beat plotters --help
Usage: beat plotters [OPTIONS] COMMAND [ARGS]...

  Plotters commands

Options:
  --help  Show this message and exit.

Commands:
  check    Checks a local plotter for validity.
  create   Creates a new local plotter.
  edit     Edit local plotter file Example: $ beat...
  fork     Forks a local plotter.
  list     Lists all the plotters available on the...
  path     Displays local path of plotters files...
  plot     Plots an image.
  pull     Downloads the specified plotters from the...
  rm       Deletes a local plotter.
  version  Creates a new version of an existing plotter.

For instance, a list of the plotters available locally can be obtained as follows:

$ beat plotters list

A list of the plotters available on the remote platform can be obtained by running the following command:

$ beat plotters list --remote

How to plot a figure?

The command beat plotters plot <name> can be used to plot data using a specific plotter.

There a many ways to plot data:

  • Using sample data:
$ beat plotter plot --sample_data plottername
  • passing some private input data (no sample_data required here), specific plotterparameter and output image name
$ beat plotter plot plottername --inputdata inputdata.json --outputimage outputimage.png --plotterparameter plotterparameter

* inputdata.json is the filename containing data
* outputimage is the name of the saved image
* plotter the name of the plotter (e.g.: plot/bar/1)
* plotterparameter the name of the plotterparameter (e.g.: plot/bar/1)
  • without specifing the output image:
$ beat plotter plot plottername --inputdata inputdata.json --plotterparameter plotterparameter

* The image gets saved under the plotter path with default name "output_image.png"

Take into account that some extra options are available such as ‘–show’ which will pop out the generated plots on your screen.