Configuration Visualizations¶
Before running a simulation, you can use these charts to review the network and its demand inputs.
They work directly with a Config object, so you do not need
simulation results.
Here we’ll load the 3MKT demo configuration to see its routes and booking curves:
import passengersim as pax
cfg = pax.Config.from_yaml(pax.demo_network("3MKT/DEMO"))
Route Map¶
This map shows the routes offered in the network. It helps you check which airports are connected and review the geographic coverage before running the simulation.
To show the whole network, call fig_route_map on a
Config object:
cfg.fig_route_map()
To focus on one carrier, pass its name to
fig_route_map on the same
Config object. The maps look the same in this example because the
carriers in 3MKT serve the same routes:
cfg.fig_route_map("AL1")
Booking Curves¶
Booking curves describe when passengers arrive during the booking horizon. This chart shows the cumulative fraction of demand arriving by each day, so you can see which curves put more demand early in the horizon and which concentrate it closer to departure.
Call fig_booking_curves on a
Config object:
cfg.fig_booking_curves()