Skip to content

LMP Map: hover tips and web compatibility for mapping visualization#191

Merged
victoriahunt merged 1 commit intodevelopfrom
lmp_visuals_improve_vh
Nov 17, 2020
Merged

LMP Map: hover tips and web compatibility for mapping visualization#191
victoriahunt merged 1 commit intodevelopfrom
lmp_visuals_improve_vh

Conversation

@victoriahunt
Copy link
Copy Markdown
Contributor

Pull Request Etiquette doc

Purpose

Add hover-over tips and improve web compatibility of the LMP mapping functions, which are used on the website dashboard. Addresses zenhub issue #190

What the code is doing

Hover tips added in plot_lmp_map.py. Aesthetic improvements added including making lines of state borders gray instead of black. Also aligns with other maps on dashboard stylistically.

Testing

n/a

Where to look

plot_lmp_map.py

Usage Example/Visuals

Showing hover over tips. Visualizing lmp for scenario 824.
Screen Shot 2020-11-04 at 3 19 36 PM
Zoomed out to whole USA:
Screen Shot 2020-11-04 at 3 21 04 PM

Time estimate

10-15 min.

@victoriahunt victoriahunt self-assigned this Nov 4, 2020
@victoriahunt victoriahunt added the visualization Issue related to visualization label Nov 4, 2020
@@ -112,30 +108,45 @@ def _construct_shadowprice_visuals(lmp_split_points, bus_segments, us_states_dat
:type file_name: str
"""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The docstring is not up to date. The file_name parameter should be discarded and and return parameter should be added. Also, it would be nice to use our more condensed docstring formatting that we use in other modules:

  • :param type param_name : description
  • :return: (type) -- description

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

resolved with cff8c35

@victoriahunt victoriahunt force-pushed the lmp_visuals_improve_vh branch 2 times, most recently from cff8c35 to bd45f27 Compare November 17, 2020 20:10
Comment thread postreise/plot/plot_lmp_map.py Outdated
:type file_name: str
:param us_states_dat: if None default to us_states data file, imported from bokeh
:type us_states_dat: dict
:param pandas.DataFrame s_grid: scenario grid
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:param powersimdata.input.grid.Grid s_grid:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@victoriahunt victoriahunt force-pushed the lmp_visuals_improve_vh branch from a615180 to af4b765 Compare November 17, 2020 21:29
Copy link
Copy Markdown
Collaborator

@rouille rouille left a comment

Choose a reason for hiding this comment

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

Thanks

@victoriahunt victoriahunt merged commit 4e7098b into develop Nov 17, 2020
@victoriahunt victoriahunt deleted the lmp_visuals_improve_vh branch November 17, 2020 22:02
@rouille rouille restored the lmp_visuals_improve_vh branch January 12, 2021 22:23
@rouille rouille deleted the lmp_visuals_improve_vh branch January 12, 2021 23:29
@ahurli ahurli mentioned this pull request Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

visualization Issue related to visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants