„Benutzer Diskussion:StefanInaktiv“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
Letzter Kommentar: vor 6 Jahren von StefanPohl in Abschnitt Population pyramids
Zur Navigation springen Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
DCKH (Diskussion | Beiträge)
Zeile 30: Zeile 30:


::::Thanks a lot: This is looking great. Are you already bisecting with PHP or where is the splitting script?--[[Benutzer:DCKH|DCKH]] ([[Benutzer Diskussion:DCKH|Diskussion]]) 14:10, 22. Mai 2018 (CEST)
::::Thanks a lot: This is looking great. Are you already bisecting with PHP or where is the splitting script?--[[Benutzer:DCKH|DCKH]] ([[Benutzer Diskussion:DCKH|Diskussion]]) 14:10, 22. Mai 2018 (CEST)

::::: The script is not finalized. It needs some tweaking with edge cases (e.g. countries with very few or a lot of people, then the axes/tic labels are not looking great). I'll upload it alltogether when I'm done. The static script used for teh first graph is in the description of the file on Commons. --<small>[[Benutzer_Diskussion:StefanPohl|Stefan]]</small> 16:00, 22. Mai 2018 (CEST)

Version vom 22. Mai 2018, 16:00 Uhr

Diese Benutzerdiskussionsseite dient der persönlichen Kommunikation mit Benutzer StefanInaktiv.

Wenn du mich hier ansprichst, antworte ich auch auf dieser Seite. Wenn ich dich auf einer anderen Seite angesprochen habe, antworte bitte auch dort!

Klicke auf Abschnitt hinzufügen, um ein neues Diskussionsthema zu beginnen.
Zusätzlich lizenziert unter Creative Commons „CC0 1.0 Universell“
CC0 Ich lizenziere meine Beiträge zusätzlich unter Creative Commons „CC0 1.0 Universell“. Andere Bearbeiter tun das möglicherweise nicht, weitere Informationen.

Population pyramids

Hi Stephan,

I've came here through Commons, where I've noticed your great gnuplot charts.

I would like to ask you quite bluntly, whether it's possible to create population pyramids like File:Afghanistanpop.svg in gnuplot? I've tried with matplotlib, but this didn't work that well. So now I'm trying to let others solve my problem, if you don't mind ;) ... PS: I would really appreciate if you could help me.

As data this seems suitable.

Greetings, --DCKH (Diskussion) 14:33, 18. Mai 2018 (CEST)Beantworten

Hi, this is possible with gnuplot. I'll have a look in the next days. I have to play a little bit with the settings of gnuplot first to make it look good, since pyramid plots are something I never did before (but after all, it's just two plots that are rotated). The data, however, does not include separate numbers for male and female, does it? I can only find combined numbers. --Stefan 16:22, 18. Mai 2018 (CEST)Beantworten
I'm sorry: On the WPP main page there are age compositions for both sexes.--DCKH (Diskussion) 19:52, 18. Mai 2018 (CEST)Beantworten
Short update: I'm almost done, it was actually harder than I expected. One problem was that gnuplot had problems with rotated plots, but I could trick it to get the job done. The other problem was: I tried to find a solution to plot all countries at once automatically (one per SVG file) from the complete CSV provided by the UN, but unfortunately this does not seem to be possible out of the box (due to the ugly CSV file format of the UN, which looks to be a product of a SQL join – not because gnuplot couldn't to this at all). I will finish the style of a single plot and maybe we can find a fully automated way at a later time. I think I will upload later today or tommorow. --Stefan 14:08, 20. Mai 2018 (CEST)Beantworten
How is this? I tried to keep the style and labels as language-agnostic as possible so that no translation is needed at all. When the style is finalized, I think I'll write a short PHP script to bisect the CSV file of the UN and automatically create all pyramids for all countries. Maybe even an automated uploading script to commons. --Stefan 10:38, 21. Mai 2018 (CEST)Beantworten
Thanks a lot: This is looking great. Are you already bisecting with PHP or where is the splitting script?--DCKH (Diskussion) 14:10, 22. Mai 2018 (CEST)Beantworten
The script is not finalized. It needs some tweaking with edge cases (e.g. countries with very few or a lot of people, then the axes/tic labels are not looking great). I'll upload it alltogether when I'm done. The static script used for teh first graph is in the description of the file on Commons. --Stefan 16:00, 22. Mai 2018 (CEST)Beantworten