Skip to content

Commit

Permalink
Map done
Browse files Browse the repository at this point in the history
  • Loading branch information
florianjehn committed Jan 17, 2024
1 parent 6e3a0b1 commit d057854
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Binary file modified results/figures/Wheat_Y2018_Global_trade_communities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/testing.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ def plot_trade_communities(self):

plot_winkel_tripel_map(ax)

# Add a title
ax.set_title(
f"Trade communities for {self.crop} with base year {self.base_year}",
fontsize=18,
)

# save the plot
plt.savefig(
"."
Expand Down
2 changes: 0 additions & 2 deletions src/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ def rename_countries(
if "China; Taiwan Province of" in data.columns:
data.rename(columns={"China; Taiwan Province of": "Taiwan"}, inplace=True)



return data


Expand Down

0 comments on commit d057854

Please sign in to comment.