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

update plotly #132

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions generate_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,16 @@

## create a single treemap plot for every overarching category

modules_df = modules_df.fillna("None")

# delete old plot file
os.remove("hugo/layouts/shortcodes/modules_" + city + ".html")
modules_plot_file = open("hugo/layouts/shortcodes/modules_" + city + ".html", "a")


for cat in categories:

modules_onecat = modules_df[modules_df.id.str.startswith(cat)]
modules_onecat = modules_df[modules_df.id.str.startswith(cat)].copy()
modules_onecat["potential"] = modules_onecat["potential"].astype(str)

fig_modules = go.Figure(
go.Treemap(
Expand Down
698 changes: 6 additions & 692 deletions hugo/assets/js/plotly.custom.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hugo/layouts/shortcodes/modules_muenster.html

Large diffs are not rendered by default.

Loading