*This is the syntax exactly as it was used to create the graph. The graph was subsequently edited with the usual SPSS editing options.
*To ensure that the syntax works for you, check whether SPSS labeled the WDI2011 dataset as "DataSet1" when you opened it. If it didn't, adjust the dataset name in the syntax accordingly.
*Once you have done that, mark all of the syntax code and press the play ('run selection') button.
GGRAPH
  /GRAPHDATASET NAME="DataSet1" VARIABLES=femparl MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("DataSet1"))
  DATA: femparl=col(source(s), name("femparl"))
  TRANS: rug = eval(0)
  GUIDE: axis(dim(1), label("Proportion of seats held by women in national parliaments in % (2011-2012)"))
  GUIDE: axis(dim(2), label("Density"))
  SCALE: linear(dim(2), min(0))
  ELEMENT: point(position(femparl*rug), transparency.exterior(transparency."0.8"))
  ELEMENT: line(position(density.kernel.epanechnikov(femparl*1)))
END GPL.