Configuration Visualizations¶
Some PassengerSim visualization tools can operate on a Config object directly, because they don't rely on the outputs of a simulation. Some examples are shown here.
In [1]:
Copied!
import passengersim as pax
cfg = pax.Config.from_yaml(pax.demo_network("3MKT/DEMO"))
import passengersim as pax
cfg = pax.Config.from_yaml(pax.demo_network("3MKT/DEMO"))
Route Map¶
You can generate a map of all the legs in the network, or all the legs offered by a particular carrier (here the maps look the same, as the 3MKT network is symmetric).
In [2]:
Copied!
cfg.fig_route_map()
cfg.fig_route_map()
Out[2]:
In [3]:
Copied!
cfg.fig_route_map("AL1")
cfg.fig_route_map("AL1")
Out[3]:
Booking Curves¶
You can review the booking curves, which control the average fraction of each passenger type arriving in each timeframe.
In [4]:
Copied!
cfg.fig_booking_curves()
cfg.fig_booking_curves()
Out[4]: