pypowsybl.network.Network.write_network_area_diagram

Network.write_network_area_diagram(svg_file, voltage_level_ids=None, depth=0, high_nominal_voltage_bound=-1, low_nominal_voltage_bound=-1, nad_parameters=None, metadata_file=None, fixed_positions=None, nad_profile=None)[source]

Create a network area diagram in SVG format and write it to a file.

Parameters:
  • svg_file (str | PathLike) – a svg file path

  • metadata_file (str | PathLike | None) – a json metadata file path (optional)

  • voltage_level_ids (List[str] | str | None) – the voltage level ID, center of the diagram (None for the full diagram)

  • depth (int) – the diagram depth around the voltage level

  • high_nominal_voltage_bound (float) – high bound to filter voltage level according to nominal voltage

  • low_nominal_voltage_bound (float) – low bound to filter voltage level according to nominal voltage

  • nad_parameters (NadParameters | None) – parameters for network area diagram

  • fixed_positions (DataFrame | None) – optional dataframe used to set fixed coordinates for diagram elements. Positions for elements not specified in the dataframe will be computed using the current layout.

  • nad_profile (NadProfile | None) – parameters to customize the network area diagram

Return type:

None