Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting of only part of the grid #219

Open
janviebahn opened this issue Jun 4, 2021 · 2 comments
Open

Plotting of only part of the grid #219

janviebahn opened this issue Jun 4, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed version 2.0 Will be made available in version 2.0 at best

Comments

@janviebahn
Copy link

Is your feature request related to a problem? Please describe.

Currently, only the entire grid can be plotted. Consequently, the layout for the entire grid must be provided. However, for very large grids (say the grid of Europe) this is not always practical and useful since only part of it might be of interest for visualization (but the entire grid is needed for load flow computations).

Describe the solution you'd like

It would be great if one has the option to also choose only part of the grid for visualization. Why not just specifying in the layout the positions of the substations of interest (no layout of all substations needed) and then the corresponding part of the grid is visualized?

@janviebahn janviebahn added the enhancement New feature or request label Jun 4, 2021
@BDonnot BDonnot added the help wanted Extra attention is needed label Jun 9, 2021
@BDonnot
Copy link
Collaborator

BDonnot commented Jun 9, 2021

Thanks for the suggestion, any contribution is more than welcome there.

Currently, if you plot it with plotly, you can zoom in the part you want.

For matplotlib, you can also easily do that by setting some xlim / ylim in the figure you get:

fig = plot_helper.plot_obs(obs)
fig.axes[0].set_xlim(-100, 100)  # compute that based on what you want to plot
fig.axes[0].set_ylim(-100, 100)  # compute that based on what you want to plot
fig   # the updated figure

An "issue" if you plot only some substation, what to do for powerlines "at the border" (ie one end of the powerline is in the part you want to plot and the other is not ?

Beside that

@janviebahn
Copy link
Author

Thanks for the current solutions.

It still would be nice if you need to provide in grid_layout.json only the substations that you want to visualize (e.g. 10 or 100) instead of all substations in grid.json (which can be 1000 and more).
Regarding the elements at the border I would say: plot all elements connected to the specified substations. The border lines/transformers will then only at one end be connected to a substation in the visualization.

@BDonnot BDonnot added the version 2.0 Will be made available in version 2.0 at best label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed version 2.0 Will be made available in version 2.0 at best
Projects
None yet
Development

No branches or pull requests

2 participants