Skip to content

Enhancing connections with simplified plotting#40

Merged
Zetison merged 4 commits intomainfrom
enhance/connections
Nov 25, 2025
Merged

Enhancing connections with simplified plotting#40
Zetison merged 4 commits intomainfrom
enhance/connections

Conversation

@Zetison
Copy link
Collaborator

@Zetison Zetison commented Nov 24, 2025

This PR Fixes #28. It does this by adding two new options to the GUI constructor: simplified_connection_plotting (default false) for controlling connection visualization detail, and simplify_all_levels (default false) for applying simplification across hierarchical levels. Also, the PR made the distance between two way connection linearly dependent on Δh instead of a fixed width based on gui.vars[:two_way_sep_px] and made the markersize (arrow heads for connections) linearly dependent on Δh instead of a fixed size based on gui.vars[:markersize].

…n_plotting` (default `false`) for controlling connection visualization detail, and `simplify_all_levels` (default `false`) for applying simplification across hierarchical levels. Also, made the distance between two way connection linearly dependent on `Δh` instead of a fixed width based on `gui.vars[:two_way_sep_px]` and made the markersize (arrow heads for connections) linearly dependent on `Δh` instead of a fixed size based on `gui.vars[:markersize]`
@Zetison Zetison requested a review from Copilot November 24, 2025 12:29
@Zetison Zetison self-assigned this Nov 24, 2025
@Zetison Zetison added the enhancement New feature or request label Nov 24, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the topology visualization by adding simplified connection plotting functionality. It introduces two new configuration options to control whether connections are displayed with multiple lines (one per transmission mode) or as single simplified lines, improving visualization clarity for complex energy systems.

  • Added simplified_connection_plotting and simplify_all_levels options to the GUI constructor
  • Made connection visualization parameters (arrow size and two-way separation) scale with node box size (Δh) instead of using fixed pixel values
  • Refactored connection data structure to support both regular and simplified plot variants

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/utils.jl Added helper functions for testing connection color states across different visualization modes
test/test_interactivity.jl Added comprehensive tests for simplified toggle functionality and consolidated import statements
test/EMI_geography_2.jl Configured test case with simplified connection plotting enabled
src/utils_GUI/topo_axis_utils.jl Implemented core simplified plotting logic with dynamic scaling and corrected typos in variable names
src/utils_GUI/event_functions.jl Added event handler for simplified toggle and cleaned up unused parameters
src/utils_GUI/GUI_utils.jl Updated color toggling to handle simplified connection states
src/setup_topology.jl Modified connection initialization to use parent-based visibility
src/setup_GUI.jl Added new GUI parameters and simplified toggle control
src/datastructures.jl Restructured Connection type to support separate regular and simplified plot storage
ext/EMGExt/EMGExt.jl Fixed typo in investment linestyle variable name
docs/make.jl Made file paths more robust using pkgdir
docs/generate_images.jl Updated to use proper component selection functions and simplified toggle
NEWS.md Documented new features and breaking changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Jon Vegard Venås and others added 3 commits November 24, 2025 13:32
@Zetison Zetison requested a review from dqpinel November 24, 2025 13:28
@Zetison Zetison merged commit 2497a0d into main Nov 25, 2025
3 checks passed
@Zetison Zetison deleted the enhance/connections branch November 25, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplified representation of transmissions at top level

3 participants