Skip to content

Commit

Permalink
added reference to swisstopo
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparJohannesSchneider committed May 4, 2021
1 parent 35124ee commit c586f4f
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 81 deletions.
10 changes: 9 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import switzerland_db

# if True neither checks the websites nor logs the data
debug_mode = False


Expand Down Expand Up @@ -65,9 +66,16 @@ def main():
cantons[canton]['df'].plot(ax=ax, color=color, edgecolor='white')

# format figure
ax.set_title('Usage of https://<canton>.impfung-covid.ch/', fontsize=32, fontweight='bold')
bbox = dict(boxstyle='round', facecolor='white', alpha=0.6)
ax.set_title('Usage of https://<canton>.impfung-covid.ch/', fontsize=32,
fontweight='bold', bbox=bbox)
fig.patch.set_visible(False)
ax.axis('off')

# Add reference
ax.text(0.9, 0, 'geographical data by:\n©swisstopo', transform=ax.transAxes,
fontsize=14, verticalalignment='bottom', horizontalalignment='center', bbox=bbox)

fig.show()

# export figure
Expand Down
Binary file modified switzerland_impfung_covid_usage.pdf
Binary file not shown.
Binary file modified switzerland_impfung_covid_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c586f4f

Please sign in to comment.