.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_annex_4_v2.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_annex_4_v2.py: Example Train Annex 4 v2 ======================== Version 2 of example annex 4 .. GENERATED FROM PYTHON SOURCE LINES 8-14 .. code-block:: default from networkx import DiGraph from tom.util import example, dump_routing_info_as_xml from tom.tom import make_train_from_yml, TrainRun, RouteSection, Route from tom.plot import * .. GENERATED FROM PYTHON SOURCE LINES 15-16 Load example annex 4 version 2 from yaml specification .. GENERATED FROM PYTHON SOURCE LINES 16-20 .. code-block:: default pattern = 'annex-4-2' _, t_spec_file = example('../tests/data', pattern) print(t_spec_file.read_text()) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none --- coreID: ID1 lead_ru: RU1 version: 2 # RoutingInfo version sections: - id: 10 version: 2 # RouteSection version departure_station: S departure_time: '00:20:00' arrival_station: H1 travel_time: &s1-tt '24:20:00' calendar: begin: '2021-02-01' end: '2021-02-04' color: green succ: - 11 - id: 11 version: 2 departure_station: H1 arrival_station: T travel_time: &s2-tt '07:30:00' - id: 40 version: 1 departure_station: S departure_time: '23:30:00' arrival_station: H1 travel_time: '24:20:00' color: yellowgreen calendar: begin: '2021-02-04' end: '2021-02-06' succ: - 41 - id: 41 version: 1 departure_station: H1 arrival_station: T travel_time: '07:30:00' # Sec 3-4: Shorten calender # Change departure times - id: 20 version: 2 departure_station: S departure_time: '23:55:00' arrival_station: H1 travel_time: *s1-tt color: blue calendar: begin: '2021-02-11' end: '2021-02-13' succ: - 21 - id: 21 version: 2 departure_station: H1 arrival_station: T travel_time: *s2-tt # Shorten calender of D-T - id: 50 version: 1 departure_station: D departure_time: '01:45:00' arrival_station: H1 travel_time: '22:30:00' color: red calendar: begin: '2021-02-08' end: '2021-02-11' succ: - 51 - id: 51 version: 1 departure_station: H1 arrival_station: T travel_time: *s2-tt - id: 30 version: 2 departure_station: D departure_time: '01:10:00' arrival_station: H1 travel_time: '22:30:00' color: salmon calendar: begin: '2021-02-15' end: '2021-02-20' succ: - 31 - id: 31 version: 2 departure_station: H1 arrival_station: T travel_time: *s2-tt .. GENERATED FROM PYTHON SOURCE LINES 21-22 Now create train object and show its train id. .. GENERATED FROM PYTHON SOURCE LINES 23-26 .. code-block:: default t = make_train_from_yml(t_spec_file) t.train_id() .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 'TR/8350/ID1/00/2021' .. GENERATED FROM PYTHON SOURCE LINES 27-30 Timetable ^^^^^^^^^ .. GENERATED FROM PYTHON SOURCE LINES 30-33 .. code-block:: default df = t.to_dataframe() df .. raw:: html
Departure D Departure S Arrival H1 Departure H1 Arrival T
Daily Train ID
TR/8350/ID1/10/2021/2021-02-01 Mo 01.02.21 00:20 Di 02.02.21 00:40 Di 02.02.21 00:40 Di 02.02.21 08:10
TR/8350/ID1/10/2021/2021-02-02 Di 02.02.21 00:20 Mi 03.02.21 00:40 Mi 03.02.21 00:40 Mi 03.02.21 08:10
TR/8350/ID1/10/2021/2021-02-03 Mi 03.02.21 00:20 Do 04.02.21 00:40 Do 04.02.21 00:40 Do 04.02.21 08:10
TR/8350/ID1/10/2021/2021-02-04 Do 04.02.21 00:20 Fr 05.02.21 00:40 Fr 05.02.21 00:40 Fr 05.02.21 08:10
TR/8350/ID1/40/2021/2021-02-04 Do 04.02.21 23:30 Fr 05.02.21 23:50 Fr 05.02.21 23:50 Sa 06.02.21 07:20
TR/8350/ID1/40/2021/2021-02-05 Fr 05.02.21 23:30 Sa 06.02.21 23:50 Sa 06.02.21 23:50 So 07.02.21 07:20
TR/8350/ID1/40/2021/2021-02-06 Sa 06.02.21 23:30 So 07.02.21 23:50 So 07.02.21 23:50 Mo 08.02.21 07:20
TR/8350/ID1/50/2021/2021-02-08 Mo 08.02.21 01:45 Di 09.02.21 00:15 Di 09.02.21 00:15 Di 09.02.21 07:45
TR/8350/ID1/50/2021/2021-02-09 Di 09.02.21 01:45 Mi 10.02.21 00:15 Mi 10.02.21 00:15 Mi 10.02.21 07:45
TR/8350/ID1/50/2021/2021-02-10 Mi 10.02.21 01:45 Do 11.02.21 00:15 Do 11.02.21 00:15 Do 11.02.21 07:45
TR/8350/ID1/20/2021/2021-02-11 Do 11.02.21 23:55 Sa 13.02.21 00:15 Sa 13.02.21 00:15 Sa 13.02.21 07:45
TR/8350/ID1/50/2021/2021-02-11 Do 11.02.21 01:45 Fr 12.02.21 00:15 Fr 12.02.21 00:15 Fr 12.02.21 07:45
TR/8350/ID1/20/2021/2021-02-12 Fr 12.02.21 23:55 So 14.02.21 00:15 So 14.02.21 00:15 So 14.02.21 07:45
TR/8350/ID1/20/2021/2021-02-13 Sa 13.02.21 23:55 Mo 15.02.21 00:15 Mo 15.02.21 00:15 Mo 15.02.21 07:45
TR/8350/ID1/30/2021/2021-02-15 Mo 15.02.21 01:10 Mo 15.02.21 23:40 Mo 15.02.21 23:40 Di 16.02.21 07:10
TR/8350/ID1/30/2021/2021-02-16 Di 16.02.21 01:10 Di 16.02.21 23:40 Di 16.02.21 23:40 Mi 17.02.21 07:10
TR/8350/ID1/30/2021/2021-02-17 Mi 17.02.21 01:10 Mi 17.02.21 23:40 Mi 17.02.21 23:40 Do 18.02.21 07:10
TR/8350/ID1/30/2021/2021-02-18 Do 18.02.21 01:10 Do 18.02.21 23:40 Do 18.02.21 23:40 Fr 19.02.21 07:10
TR/8350/ID1/30/2021/2021-02-19 Fr 19.02.21 01:10 Fr 19.02.21 23:40 Fr 19.02.21 23:40 Sa 20.02.21 07:10
TR/8350/ID1/30/2021/2021-02-20 Sa 20.02.21 01:10 Sa 20.02.21 23:40 Sa 20.02.21 23:40 So 21.02.21 07:10


.. GENERATED FROM PYTHON SOURCE LINES 34-37 Bildfahrplan ^^^^^^^^^^^^ Show timetable .. GENERATED FROM PYTHON SOURCE LINES 37-39 .. code-block:: default plot_train(t) .. image:: /auto_examples/images/sphx_glr_plot_annex_4_v2_001.png :alt: Timetable TR/8350/ID1/00/2021 v2 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 40-43 Route Sections ^^^^^^^^^^^^^^ From which sections the train is composed? .. GENERATED FROM PYTHON SOURCE LINES 43-47 .. code-block:: default section: RouteSection for section in t.sections: print(section.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none ID : 10.v2 Calender : 01/02 to 04/02 1111 Start at: 00:20 in S Arrival at: 00:40 in H1 Successors: [11] ID : 11.v2 Calender : 02/02 to 05/02 1111 Start at: 00:40 in H1 Arrival at: 08:10 in T Successors: [] ID : 40.v1 Calender : 04/02 to 06/02 111 Start at: 23:30 in S Arrival at: 23:50 in H1 Successors: [41] ID : 41.v1 Calender : 05/02 to 07/02 111 Start at: 23:50 in H1 Arrival at: 07:20 in T Successors: [] ID : 20.v2 Calender : 11/02 to 13/02 111 Start at: 23:55 in S Arrival at: 00:15 in H1 Successors: [21] ID : 21.v2 Calender : 13/02 to 15/02 111 Start at: 00:15 in H1 Arrival at: 07:45 in T Successors: [] ID : 50.v1 Calender : 08/02 to 11/02 1111 Start at: 01:45 in D Arrival at: 00:15 in H1 Successors: [51] ID : 51.v1 Calender : 09/02 to 12/02 1111 Start at: 00:15 in H1 Arrival at: 07:45 in T Successors: [] ID : 30.v2 Calender : 15/02 to 20/02 111111 Start at: 01:10 in D Arrival at: 23:40 in H1 Successors: [31] ID : 31.v2 Calender : 15/02 to 20/02 111111 Start at: 23:40 in H1 Arrival at: 07:10 in T Successors: [] .. GENERATED FROM PYTHON SOURCE LINES 48-51 Section graph ^^^^^^^^^^^^^ The section graph is computed using the successor relation. .. GENERATED FROM PYTHON SOURCE LINES 51-54 .. code-block:: default sg: DiGraph = t.section_graph() plot_graph(sg) .. image:: /auto_examples/images/sphx_glr_plot_annex_4_v2_002.png :alt: plot annex 4 v2 :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 55-59 Routes ^^^^^^ Print all possible routes. Routes are calculated from all possible paths in the section graph. .. GENERATED FROM PYTHON SOURCE LINES 59-63 .. code-block:: default route: Route for route in t.routes(): print(route.description(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Route : S-H1-T Key : 10-11 Calendar : 01/02 to 04/02 1111 Start at: 00:20 in S Arrival at: 00:40 in H1 Arrival at: 08:10 in T Route : S-H1-T Key : 40-41 Calendar : 04/02 to 06/02 111 Start at: 23:30 in S Arrival at: 23:50 in H1 Arrival at: 07:20 in T Route : S-H1-T Key : 20-21 Calendar : 11/02 to 13/02 111 Start at: 23:55 in S Arrival at: 00:15 in H1 Arrival at: 07:45 in T Route : D-H1-T Key : 50-51 Calendar : 08/02 to 11/02 1111 Start at: 01:45 in D Arrival at: 00:15 in H1 Arrival at: 07:45 in T Route : D-H1-T Key : 30-31 Calendar : 15/02 to 20/02 111111 Start at: 01:10 in D Arrival at: 23:40 in H1 Arrival at: 07:10 in T .. GENERATED FROM PYTHON SOURCE LINES 64-68 Section runs ^^^^^^^^^^^^ For each day of the calendar of a section a `SectionRun` is created. The section runs are the rows of RouteSection.to_dataframe: .. GENERATED FROM PYTHON SOURCE LINES 68-72 .. code-block:: default for section in t.sections: print(f"{section.section_id}: {section}") print(section.to_dataframe(), "\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 10: S-H1 ID S H1 2021-02-01 10 2021-02-01 00:20:00 2021-02-02 00:40:00 2021-02-02 10 2021-02-02 00:20:00 2021-02-03 00:40:00 2021-02-03 10 2021-02-03 00:20:00 2021-02-04 00:40:00 2021-02-04 10 2021-02-04 00:20:00 2021-02-05 00:40:00 11: H1-T ID H1 T 2021-02-02 11 2021-02-02 00:40:00 2021-02-02 08:10:00 2021-02-03 11 2021-02-03 00:40:00 2021-02-03 08:10:00 2021-02-04 11 2021-02-04 00:40:00 2021-02-04 08:10:00 2021-02-05 11 2021-02-05 00:40:00 2021-02-05 08:10:00 40: S-H1 ID S H1 2021-02-04 40 2021-02-04 23:30:00 2021-02-05 23:50:00 2021-02-05 40 2021-02-05 23:30:00 2021-02-06 23:50:00 2021-02-06 40 2021-02-06 23:30:00 2021-02-07 23:50:00 41: H1-T ID H1 T 2021-02-05 41 2021-02-05 23:50:00 2021-02-06 07:20:00 2021-02-06 41 2021-02-06 23:50:00 2021-02-07 07:20:00 2021-02-07 41 2021-02-07 23:50:00 2021-02-08 07:20:00 20: S-H1 ID S H1 2021-02-11 20 2021-02-11 23:55:00 2021-02-13 00:15:00 2021-02-12 20 2021-02-12 23:55:00 2021-02-14 00:15:00 2021-02-13 20 2021-02-13 23:55:00 2021-02-15 00:15:00 21: H1-T ID H1 T 2021-02-13 21 2021-02-13 00:15:00 2021-02-13 07:45:00 2021-02-14 21 2021-02-14 00:15:00 2021-02-14 07:45:00 2021-02-15 21 2021-02-15 00:15:00 2021-02-15 07:45:00 50: D-H1 ID D H1 2021-02-08 50 2021-02-08 01:45:00 2021-02-09 00:15:00 2021-02-09 50 2021-02-09 01:45:00 2021-02-10 00:15:00 2021-02-10 50 2021-02-10 01:45:00 2021-02-11 00:15:00 2021-02-11 50 2021-02-11 01:45:00 2021-02-12 00:15:00 51: H1-T ID H1 T 2021-02-09 51 2021-02-09 00:15:00 2021-02-09 07:45:00 2021-02-10 51 2021-02-10 00:15:00 2021-02-10 07:45:00 2021-02-11 51 2021-02-11 00:15:00 2021-02-11 07:45:00 2021-02-12 51 2021-02-12 00:15:00 2021-02-12 07:45:00 30: D-H1 ID D H1 2021-02-15 30 2021-02-15 01:10:00 2021-02-15 23:40:00 2021-02-16 30 2021-02-16 01:10:00 2021-02-16 23:40:00 2021-02-17 30 2021-02-17 01:10:00 2021-02-17 23:40:00 2021-02-18 30 2021-02-18 01:10:00 2021-02-18 23:40:00 2021-02-19 30 2021-02-19 01:10:00 2021-02-19 23:40:00 2021-02-20 30 2021-02-20 01:10:00 2021-02-20 23:40:00 31: H1-T ID H1 T 2021-02-15 31 2021-02-15 23:40:00 2021-02-16 07:10:00 2021-02-16 31 2021-02-16 23:40:00 2021-02-17 07:10:00 2021-02-17 31 2021-02-17 23:40:00 2021-02-18 07:10:00 2021-02-18 31 2021-02-18 23:40:00 2021-02-19 07:10:00 2021-02-19 31 2021-02-19 23:40:00 2021-02-20 07:10:00 2021-02-20 31 2021-02-20 23:40:00 2021-02-21 07:10:00 .. GENERATED FROM PYTHON SOURCE LINES 73-76 TrainRuns ^^^^^^^^^ Each `TrainRun` defines a row in the timetable of the train above .. GENERATED FROM PYTHON SOURCE LINES 76-83 .. code-block:: default tr: TrainRun for tr in t.train_run_iterator(): print(tr) for sr in tr.sections_runs: print(sr) print("\n") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none TR/8350/ID1/10/2021/2021-02-01 10.v2:2021-02-01 00:20 OTR=0 S-H1 2021-02-02 00:40 OTR=1 11.v2:2021-02-02 00:40 OTR=1 H1-T 2021-02-02 08:10 OTR=1 TR/8350/ID1/10/2021/2021-02-02 10.v2:2021-02-02 00:20 OTR=0 S-H1 2021-02-03 00:40 OTR=1 11.v2:2021-02-03 00:40 OTR=1 H1-T 2021-02-03 08:10 OTR=1 TR/8350/ID1/10/2021/2021-02-03 10.v2:2021-02-03 00:20 OTR=0 S-H1 2021-02-04 00:40 OTR=1 11.v2:2021-02-04 00:40 OTR=1 H1-T 2021-02-04 08:10 OTR=1 TR/8350/ID1/10/2021/2021-02-04 10.v2:2021-02-04 00:20 OTR=0 S-H1 2021-02-05 00:40 OTR=1 11.v2:2021-02-05 00:40 OTR=1 H1-T 2021-02-05 08:10 OTR=1 TR/8350/ID1/40/2021/2021-02-04 40.v1:2021-02-04 23:30 OTR=0 S-H1 2021-02-05 23:50 OTR=1 41.v1:2021-02-05 23:50 OTR=1 H1-T 2021-02-06 07:20 OTR=2 TR/8350/ID1/40/2021/2021-02-05 40.v1:2021-02-05 23:30 OTR=0 S-H1 2021-02-06 23:50 OTR=1 41.v1:2021-02-06 23:50 OTR=1 H1-T 2021-02-07 07:20 OTR=2 TR/8350/ID1/40/2021/2021-02-06 40.v1:2021-02-06 23:30 OTR=0 S-H1 2021-02-07 23:50 OTR=1 41.v1:2021-02-07 23:50 OTR=1 H1-T 2021-02-08 07:20 OTR=2 TR/8350/ID1/20/2021/2021-02-11 20.v2:2021-02-11 23:55 OTR=0 S-H1 2021-02-13 00:15 OTR=2 21.v2:2021-02-13 00:15 OTR=2 H1-T 2021-02-13 07:45 OTR=2 TR/8350/ID1/20/2021/2021-02-12 20.v2:2021-02-12 23:55 OTR=0 S-H1 2021-02-14 00:15 OTR=2 21.v2:2021-02-14 00:15 OTR=2 H1-T 2021-02-14 07:45 OTR=2 TR/8350/ID1/20/2021/2021-02-13 20.v2:2021-02-13 23:55 OTR=0 S-H1 2021-02-15 00:15 OTR=2 21.v2:2021-02-15 00:15 OTR=2 H1-T 2021-02-15 07:45 OTR=2 TR/8350/ID1/50/2021/2021-02-08 50.v1:2021-02-08 01:45 OTR=0 D-H1 2021-02-09 00:15 OTR=1 51.v1:2021-02-09 00:15 OTR=1 H1-T 2021-02-09 07:45 OTR=1 TR/8350/ID1/50/2021/2021-02-09 50.v1:2021-02-09 01:45 OTR=0 D-H1 2021-02-10 00:15 OTR=1 51.v1:2021-02-10 00:15 OTR=1 H1-T 2021-02-10 07:45 OTR=1 TR/8350/ID1/50/2021/2021-02-10 50.v1:2021-02-10 01:45 OTR=0 D-H1 2021-02-11 00:15 OTR=1 51.v1:2021-02-11 00:15 OTR=1 H1-T 2021-02-11 07:45 OTR=1 TR/8350/ID1/50/2021/2021-02-11 50.v1:2021-02-11 01:45 OTR=0 D-H1 2021-02-12 00:15 OTR=1 51.v1:2021-02-12 00:15 OTR=1 H1-T 2021-02-12 07:45 OTR=1 TR/8350/ID1/30/2021/2021-02-15 30.v2:2021-02-15 01:10 OTR=0 D-H1 2021-02-15 23:40 OTR=0 31.v2:2021-02-15 23:40 OTR=0 H1-T 2021-02-16 07:10 OTR=1 TR/8350/ID1/30/2021/2021-02-16 30.v2:2021-02-16 01:10 OTR=0 D-H1 2021-02-16 23:40 OTR=0 31.v2:2021-02-16 23:40 OTR=0 H1-T 2021-02-17 07:10 OTR=1 TR/8350/ID1/30/2021/2021-02-17 30.v2:2021-02-17 01:10 OTR=0 D-H1 2021-02-17 23:40 OTR=0 31.v2:2021-02-17 23:40 OTR=0 H1-T 2021-02-18 07:10 OTR=1 TR/8350/ID1/30/2021/2021-02-18 30.v2:2021-02-18 01:10 OTR=0 D-H1 2021-02-18 23:40 OTR=0 31.v2:2021-02-18 23:40 OTR=0 H1-T 2021-02-19 07:10 OTR=1 TR/8350/ID1/30/2021/2021-02-19 30.v2:2021-02-19 01:10 OTR=0 D-H1 2021-02-19 23:40 OTR=0 31.v2:2021-02-19 23:40 OTR=0 H1-T 2021-02-20 07:10 OTR=1 TR/8350/ID1/30/2021/2021-02-20 30.v2:2021-02-20 01:10 OTR=0 D-H1 2021-02-20 23:40 OTR=0 31.v2:2021-02-20 23:40 OTR=0 H1-T 2021-02-21 07:10 OTR=1 .. GENERATED FROM PYTHON SOURCE LINES 84-90 RoutingInformation as TrainInformation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An XML Dump of the routing information of this example according a new version of the TSI XSD. See `Routing planning <../routing-planning-process.html#routininformation-as-traininformation>`_ for more details. .. GENERATED FROM PYTHON SOURCE LINES 90-91 .. code-block:: default print(dump_routing_info_as_xml(t)) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none RS 8350 ---------ID1 10 2021 DE 10004 S 0 DE 10005 H1 1 1111 2021-02-01T00:00:00 2021-02-04T00:00:00 RS 8350 ---------ID1 11 2021 RS 8350 ---------ID1 11 2021 DE 10005 H1 0 DE 10006 T 0 1111 2021-02-02T00:00:00 2021-02-05T00:00:00 RS 8350 ---------ID1 40 2021 DE 10004 S 0 DE 10005 H1 1 111 2021-02-04T00:00:00 2021-02-06T00:00:00 RS 8350 ---------ID1 41 2021 RS 8350 ---------ID1 41 2021 DE 10005 H1 0 DE 10006 T 1 111 2021-02-05T00:00:00 2021-02-07T00:00:00 RS 8350 ---------ID1 20 2021 DE 10004 S 0 DE 10005 H1 2 111 2021-02-11T00:00:00 2021-02-13T00:00:00 RS 8350 ---------ID1 21 2021 RS 8350 ---------ID1 21 2021 DE 10005 H1 0 DE 10006 T 0 111 2021-02-13T00:00:00 2021-02-15T00:00:00 RS 8350 ---------ID1 50 2021 DE 10003 D 0 DE 10005 H1 1 1111 2021-02-08T00:00:00 2021-02-11T00:00:00 RS 8350 ---------ID1 51 2021 RS 8350 ---------ID1 51 2021 DE 10005 H1 0 DE 10006 T 0 1111 2021-02-09T00:00:00 2021-02-12T00:00:00 RS 8350 ---------ID1 30 2021 DE 10003 D 0 DE 10005 H1 0 111111 2021-02-15T00:00:00 2021-02-20T00:00:00 RS 8350 ---------ID1 31 2021 RS 8350 ---------ID1 31 2021 DE 10005 H1 0 DE 10006 T 1 111111 2021-02-15T00:00:00 2021-02-20T00:00:00 1111 2021-02-01T00:00:00 2021-02-04T00:00:00 DE 10004 S 0 DE 10005 H1 1 DE 10006 T 0 111 2021-02-04T00:00:00 2021-02-06T00:00:00 DE 10004 S 0 DE 10005 H1 1 DE 10006 T 1 111 2021-02-11T00:00:00 2021-02-13T00:00:00 DE 10004 S 0 DE 10005 H1 2 DE 10006 T 0 1111 2021-02-08T00:00:00 2021-02-11T00:00:00 DE 10003 D 0 DE 10005 H1 1 DE 10006 T 0 111111 2021-02-15T00:00:00 2021-02-20T00:00:00 DE 10003 D 0 DE 10005 H1 0 DE 10006 T 1 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.974 seconds) .. _sphx_glr_download_auto_examples_plot_annex_4_v2.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_annex_4_v2.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_annex_4_v2.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_