# scatterplot2

How to download and try this example

    Usage: pl -gif scatterplot2.htm IMFILE=pngfile

    IMFILE is your png image that displays a point symbol

    Demonstrates how small PNG image may be used as data point symbol.

    #musthave IMFILE

    //  set up plotting region using proc areadef
    #proc areadef
      rectangle: 1 1 3 3
      xrange: -5 80
      yrange: -5 80
      frame: width=0.5 color=0.3

    //  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: 0 0 80 80

    //  draw red triangle points using proc scatterplot
    #proc scatterplot
      xfield: 1
      yfield: 2
      symbol: pngfile=@IMFILE pngscale=1.2

    #proc trailer
      data:  5 	8
    	10 	9
    	56 	51
    	56 	51
    	17 	22
    	28 	27
    	56 	51
    	56 	51
    	56 	51
    	32 	22
    	42 	45
    	43 	39
    	56 	51
    	56 	51
    	54 	72
    	55 	55
    	56 	37
    	56 	51
     	56 	51
    	56 	52
    	57 	54
    	60 	65
    	56 	51
    	56 	51
    	56 	51