Skip to content
Snippets Groups Projects
Commit 4f47bc63 authored by feng zhu's avatar feng zhu
Browse files

update

parent c5e058f2
Branches main
No related tags found
No related merge requests found
......@@ -56,14 +56,14 @@ for i, partdataframe in enumerate(group):
Bundesland_data = tuple(Bundesland_data)
Bundesland_data = pd.DataFrame(Bundesland_data, columns=['Bundesland', 'Anteil in %'])
# fig1, ax1 = plt.subplots(figsize=(15, 10))
# sns.barplot(x='Anzahl', y='Bundesland', data=Bundesland_data, order=Bundesland_data.sort_values('Anzahl', ascending=False).Bundesland, ax=ax1, palette="rocket")
# ax1.set_xlabel('Prozentzahl')
# ax1.set_title('Anteil der berechtigten KI-Bekanntmachungen in Prozentzahl', fontsize=20, weight='bold')
# plt.savefig('/home/zf/GitHub/Acatech_daten/figure/new_25.11.2020/Anteil_KI-Bekanntmachungen_prozentzahl_barplot.svg',
# bbox_inches='tight', format='svg', transparent=True)
fig1, ax1 = plt.subplots(figsize=(15, 10))
sns.barplot(x='Anteil in %', y='Bundesland', data=Bundesland_data, order=Bundesland_data.sort_values('Anteil in %', ascending=False).Bundesland, ax=ax1, palette="rocket")
ax1.set_xlabel('Prozentzahl')
ax1.set_title('Anteil der berechtigten KI-Bekanntmachungen in Prozentzahl', fontsize=20, weight='bold')
plt.savefig('figure/new_25.11.2020/Anteil_KI-Bekanntmachungen_prozentzahl_barplot.svg',
bbox_inches='tight', format='svg', transparent=True)
deu_geo = '/Users/zf/Acatech_daten/data/bundeslaender_simplify200.geojson'
deu_geo = 'data/bundeslaender_simplify200.geojson'
deu_map = folium.Map(location=(52, 10), zoom_start=6)
folium.GeoJson(
deu_geo,
......@@ -88,4 +88,4 @@ folium.Choropleth(
).add_to(deu_map)
# display map
deu_map.save('/Users/zf/Acatech_daten/figure/new_25.11.2020/Anteil_KI-Bekanntmachungen_prozentzahl_heatmap.html')
deu_map.save('figure/new_25.11.2020/Anteil_KI-Bekanntmachungen_prozentzahl_heatmap.html')
......@@ -101,7 +101,7 @@ folium.Choropleth(
).add_to(deu_map)
# display map
deu_map.save('/figure/new_25.11.2020/KI_Projekten_Fördervolumen.html')
deu_map.save('figure/new_25.11.2020/KI_Projekten_Fördervolumen.html')
deu_map1 = folium.Map(location=(52, 10), zoom_start=6)
folium.GeoJson(
......@@ -128,5 +128,5 @@ folium.Choropleth(
).add_to(deu_map1)
# display map
deu_map1.save('/figure/new_25.11.2020/KI_Projekten_Fördervolumen_prozent.html')
deu_map1.save('figure/new_25.11.2020/KI_Projekten_Fördervolumen_prozent.html')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment