plot
Conc plot result class.
Using the Plot class
Conc plotting functionality outputs a Plot object. This gives flexibility to display the plot in a notebook, write it to file, or return the HTML for the result.
Plot class API reference
Plot
Plot (type:str, html:str)
Class for handling delivery of Conc plot results
| Type | Details | |
|---|---|---|
| type | str | report type |
| html | str | HTML representation of the plot, may include js/css |
Plot.to_html
Plot.to_html ()
Return HTML string for plot
Plot.to_file
Plot.to_file (filename:str, encoding='utf-8')
Return HTML string for plot
| Type | Default | Details | |
|---|---|---|---|
| filename | str | filename to write HTML to | |
| encoding | str | utf-8 | encoding string for writing file |
Plot.display
Plot.display ()
Show the plot in a Jupyter notebook