fig_leg_bid_price_vectors

passengersim.tracers.bid_price.fig_leg_bid_price_vectors(summary: SimulationTables, *, leg_id: int, raw_df: bool = False) alt.Chart | pd.DataFrame[source]

Plot the mean bid-price vector heatmap for a single leg.

Parameters:
summary : SimulationTables

Simulation results containing leg_bid_price_vectors.

leg_id : int

The ID of the leg to plot.

raw_df : bool, optional

When True, return the tidy pandas.DataFrame used to build the chart instead of the chart itself. Defaults to False.

Returns:

alt.Chart or pd.DataFrame – An interactive Altair heatmap chart when raw_df is False, or a pandas.DataFrame when raw_df is True.