No topics yet. Start the conversation.

Description

The below description is supplied in free-text by the user

Visualisations

Plot

The plot module exposes a novem plot class that maps to the /v1/vis/plot/ 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 parameters as well as can be used in function chaining.

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

from novem import Plot

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

# property approach
barchart = Plot('plot_name')
barchart.type = 'bar'
barchart.title = 'barchart title'
barchart.caption = 'caption'

# function chaining
barchart = Plot('plot_name')
  .type('bar')
  .title('barchart title')
  .caption('caption')