Skip to content

Commit c586f4f

Browse files
added reference to swisstopo
1 parent 35124ee commit c586f4f

File tree

5 files changed

+570
-81
lines changed

5 files changed

+570
-81
lines changed

main.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import switzerland_db
1414

15+
# if True neither checks the websites nor logs the data
1516
debug_mode = False
1617

1718

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

6768
# format figure
68-
ax.set_title('Usage of https://<canton>.impfung-covid.ch/', fontsize=32, fontweight='bold')
69+
bbox = dict(boxstyle='round', facecolor='white', alpha=0.6)
70+
ax.set_title('Usage of https://<canton>.impfung-covid.ch/', fontsize=32,
71+
fontweight='bold', bbox=bbox)
6972
fig.patch.set_visible(False)
7073
ax.axis('off')
74+
75+
# Add reference
76+
ax.text(0.9, 0, 'geographical data by:\n©swisstopo', transform=ax.transAxes,
77+
fontsize=14, verticalalignment='bottom', horizontalalignment='center', bbox=bbox)
78+
7179
fig.show()
7280

7381
# export figure
7.8 KB
Binary file not shown.
31.4 KB
Loading

0 commit comments

Comments
 (0)