plot
Module for plotting the simulation results.
- ska_sdp_resource_model.simulate.plot.create_observing_schedule_gantt_plot(observations_df)[source]
Create a Gantt-style plot for observing schedule data.
- Parameters:
observations_df (pd.DataFrame) – A DataFrame containing observing schedule data.
- Returns:
fig (plotly.graph_objects.Figure) – A Plotly figure object representing the Gantt plot.
- ska_sdp_resource_model.simulate.plot.create_plot(resource_usage, column, title)[source]
Create a line plot for the specified resource usage data.
- Parameters:
resource_usage (pd.DataFrame) – A DataFrame containing resource usage data.
column (str) – The column name in resource_usage to plot on the y-axis.
title (str) – The title for the y-axis.
- Returns:
plotly.graph_objects.Figure – A Plotly figure object representing the line plot.
- ska_sdp_resource_model.simulate.plot.create_scheduling_blocks_gantt_plot(events_df, facet_row=None)[source]
Create a Gantt-style plot events data.
- Parameters:
events_df (pd.DataFrame) – A DataFrame containing event data.
facet_row (str) – The column name in events_df to use for the row facet, defaults to None (no facets).
- Returns:
fig (plotly.graph_objects.Figure) – A Plotly figure object representing the Gantt plot.
- ska_sdp_resource_model.simulate.plot.create_treemap(config_df, values_colname, colour_colname, title, color_midpoint: float | None = None)[source]
Create a treemap plot for the specified configuration data.
- Parameters:
config_df (pd.DataFrame) – A DataFrame containing configuration data.
values_colname (str) – The column name in config_df to use for the treemap values.
colour_colname (str) – The column name in config_df to use for the treemap colours.
title (str) – The title for the treemap plot.
color_midpoint (float) – Midpoint for color (below blue, above red)
- Returns:
fig (plotly.graph_objects.Figure) – A Plotly figure object representing the treemap plot.
- ska_sdp_resource_model.simulate.plot.create_wait_time_plot(events_df, facet_col=None)[source]
Create a strip plot showing waiting times.
- Parameters:
events_df (pd.DataFrame) – A DataFrame containing event data.
facet_col (str) – The column name in events_df to use for the column facet, defaults to None (no facets).
- Returns:
fig (plotly.graph_objects.Figure) – A Plotly figure object representing the strip plot.