# POPULATION PYRAMIDscale=1000000# ADJUST AS NECESSARY# The increment would better be automatic, but "set xtics" doesn't# allow to specify start only.increment=1# ADJUST THIS AS NECESSARY# ADJUST TITLES AS NECESSARYsetencodingiso_8859_1# set title "Mexico - 2009"setxlabel"Poblaci\363n de M\351xico, 2009 (en millones)"# Input file contains comma-separated values fieldssetdatafileseparator","# Plot to dummy device and retrieve the male/female population rangesettermunknownsetautoscalexfixplot"data.csv"using($4/scale):2,"data.csv"using(-$5/scale):2range_male=(GPVAL_X_MAX>-GPVAL_X_MIN)?GPVAL_X_MAX:-GPVAL_X_MINrange_female=range_malecentral_gap=(range_male+range_female)*0.11# ADJUST AS NECESSARYsettermsvgsize800,500dynamicfont"sans-serif"setstyledataboxxyerrorbarssetstylefillsolid0.25border# Y axis has no lines and tics, only labels which are shifted to bar medianssetyzeroaxislinewidth0setyticsaxisscale0setyticsoffset0,second1.8setautoscaleyfix# X axis is labeled from zero onwards, with the given incrementsetxticsnomirror0,incrementplot[-range_female-central_gap:range_male]\
"data.csv"using(0):2:(0):($4/scale):2:($2+5):ytic(2)\
title"Hombres"linetypergb"#296dcc"setkeyleftLeftreverseplot[range_female:-central_gap-range_male]\
"data.csv"using(0):2:(0):($5/scale):2:($2+5):ytic("")\
title"Mujeres"linetypergb"#aa3f74"
Potestas usoris
Public domainPublic domainfalsefalse
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Captions
Add a one-line explanation of what this file represents