app.model.lib.chart#

Attributes#

PLOTLY_TEMPLATE

List of templates can be found at plotly.com/python/templates

Classes#

Chart

An object that encapsulates the common properties of Plotly charts across

Module Contents#

app.model.lib.chart.PLOTLY_TEMPLATE = 'plotly_white'[source]#

List of templates can be found at plotly.com/python/templates

class app.model.lib.chart.Chart(
time_units,
cell_count_units='Cells/mL',
cfu_count_units='CFUs/mL',
metabolite_units='mM',
log_left=False,
log_right=False,
width=None,
clamp_x_data=False,
show_std=True,
)[source]#

An object that encapsulates the common properties of Plotly charts across the site.

time_units[source]#
cell_count_units = 'Cells/mL'[source]#
cfu_count_units = 'CFUs/mL'[source]#
metabolite_units = 'mM'[source]#
width = None[source]#
clamp_x_data = False[source]#
show_std = True[source]#
log_left = False[source]#
log_right = False[source]#
data_left = [][source]#
data_right = [][source]#
mixed_units_left = False[source]#
mixed_units_right = False[source]#
model_df_left_indices = [][source]#
model_df_right_indices = [][source]#
regions = [][source]#
colors[source]#
color_index = 0[source]#
add_df(df, *, units, label=None, axis='left', metabolite_mass=None)[source]#
add_model_df(df, *, units, label=None, axis='left')[source]#
add_region(start_time, end_time, label, text)[source]#
to_html()[source]#