File:Mexicopop-es.svg

Original file (SVG file, nominally 512 × 320 pixels, file size: 28 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Localized version of File:Mexicopop.svg.

Summary

edit
Description
Deutsch: Bevölkerungspryramide von Mexiko, 2009
English: Population pyramid of Mexico, 2009
Español: Pirámide de población de México, 2009
Date
Source Own work by uploader
 
This W3C-unspecified plot was created with Gnuplot.
Author Demmo

Gnuplot

edit

Version 4.2 patchlevel 2

Gnuplot source, localized for es
# POPULATION PYRAMID

scale = 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 NECESSARY
set encoding iso_8859_1
# set title "Mexico - 2009"
set xlabel "Poblaci\363n de M\351xico, 2009 (en millones)"

# Input file contains comma-separated values fields
set datafile separator ","

# Plot to dummy device and retrieve the male/female population range
set term unknown

set autoscale xfix
plot "data.csv" using ($4/scale):2, "data.csv" using (-$5/scale):2

range_male = (GPVAL_X_MAX > -GPVAL_X_MIN) ? GPVAL_X_MAX : -GPVAL_X_MIN
range_female = range_male
central_gap = (range_male + range_female) * 0.11 # ADJUST AS NECESSARY

set term svg size 800,500 dynamic font "sans-serif"

set style data boxxyerrorbars
set style fill solid 0.25 border

# Y axis has no lines and tics, only labels which are shifted to bar medians
set yzeroaxis linewidth 0
set ytics axis scale 0
set ytics offset 0, second 1.8
set autoscale yfix

# X axis is labeled from zero onwards, with the given increment
set xtics nomirror 0,increment

plot [-range_female-central_gap:range_male]\
 "data.csv" using (0):2:(0):($4/scale):2:($2+5):ytic(2)\
  title "Hombres" linetype rgb "#296dcc"

set key left Left reverse

plot [range_female:-central_gap-range_male]\
 "data.csv" using (0):2:(0):($5/scale):2:($2+5):ytic("")\
  title "Mujeres" linetype rgb "#aa3f74"

Licensing

edit
Public domain 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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:35, 13 May 2010Thumbnail for version as of 12:35, 13 May 2010512 × 320 (28 KB)Demmo (talk | contribs)Localized File:Mexicopop.svg
04:14, 17 September 2008Thumbnail for version as of 04:14, 17 September 20081,094 × 665 (102 KB)Alvaro qc (talk | contribs){{Information |Description={{en|1=Population of Mexico}} {{es|1=Población de México}} |Source=trabajo propio (own work) |Author=Alvaro qc |Date=17/09/2008 |Permission= |other_versions= }} <!--{{ImageUpload|full}}--> [[Category:Demogr

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata