# scatterplot4

How to download and try this example

    Usage: pl -gif scatterplot4.htm
    This example demonstrates how points out of plotting area are not shown.

    //  set up plotting region using proc areadef
    #proc areadef
      rectangle: 1 1 3 3
      xrange: 30 60
      yrange: 30 60
      frame: width=0.5 color=0.3
      xaxis.stubs: inc 10
      yaxis.stubs: inc 10

    //  specify data using proc getdata
    #proc getdata
      #intrailer

    //  draw diagonal line using proc line
    #proc line
      notation: scaled
      linedetails: width=0.5 color=0.8
      points: 30 30  60 60

    //  draw pink points using proc scatterplot
    #proc scatterplot
      xfield: 1
      yfield: 2
      symbol: shape=nicecircle linecolor=red radius=0.07
      text: A
      textdetails: color=red style=I size=6
      legendlabel: Alpha type

    //  draw green points using proc scatterplot
    #proc scatterplot
      xfield: 2
      yfield: 3
      symbol: shape=nicecircle linecolor=green radius=0.07
      text: B
      textdetails: color=green style=I size=6
      legendlabel: Beta type

    #proc legend
      location: min+0.3 max-0.1

    #proc trailer
      data:  5 	8    12
    	10 	9    15
    	56 	51   22
    	56 	51   30
    	17 	22   33
    	28 	27   35
    	56 	51   40
    	56 	51   42
    	56 	51   44
    	32 	22   46
    	42 	45   48
    	43 	39   50
    	56 	51   20
    	56 	51   22
    	54 	72   24
    	55 	55   28
    	56 	37   32
    	56 	51   34
     	56 	51   44
    	56 	52   50
    	57 	54   52
    	60 	65   57
    	56 	51   40
    	56 	51   42
    	56 	51   46