Plot

Plot

The plot module exposes the Plot class that maps to the /v1/vis/plots/ api end-point.

The class takes one positional parameter, the plot name, and several optional named parameters. All the named parameters in the constructor are also available as properties.

"""
Below we show the various ways you can set the options on your novem plot
"""

from novem import Plot

# specify parameters in the constructor
barchart = Plot(<name>, \
  type='bar', \
  title='barchart tiitle', \
  caption = 'caption'
)

# or specify them as properties
barchart = Plot('plot_name')
barchart.type = 'bar'
barchart.title = 'barchart title'
barchart.caption = 'caption'

Table

The Table class is a subclass of Plot for dealing with table visualisations. We’ve taken this approach because table visualisations contains quite a few idiosyncratic properties such as selectors.