Bitmap Charts



    PLOT BITMAPCHART
        X, WHITE FILLED CIRCLE
      WITH
        COMMENT "Apollo Landing Sites"
        FONT "sansserif" plain 18
        BITMAP "/Users/joe/maps/MoonMap.jpg"
        SCALE X -180 180 45
        SCALE Y -90 90 45
        GRIDLINES
        FOREGROUND WHITE
        PAGE 0 0 400 200
    SELECT moon_long, moon_lat
      FROM moon_places;

Entrance bitmap charts make it possible to plot scattered data points on any bitmap. Use BITMAP to specify the background bitmap, then set the X and Y scales using SCALE as in this example.

Anything you can do with a ScatterChart you can also do with a BitmapChart.

With the default settings, the chart frame fills the page, and all titles will be invisible. Use COMMENT or DATALABEL to place text on the image. You can also use FRAME to make the titles visible.

Use NO BITMAP and BACKGROUND when you want the size and scale of a chart to match an image without actually showing it (this can be useful for spotting data points):



    PLOT BITMAPCHART
        X, WHITE FILLED CIRCLE
      WITH
        COMMENT "Apollo Landing Sites"
        FONT "sansserif" plain 18
        BITMAP "/Users/joe/maps/MoonMap.jpg"
        SCALE X -180 180 45
        SCALE Y -90 90 45
        GRIDLINES
        FOREGROUND WHITE
        PAGE 0 0 400 200
        NO BITMAP
        BACKGROUND LIGHT GRAY
    SELECT moon_long, moon_lat
      FROM moon_places;

Be careful about referring to web bitmaps using “http:” or another URL. Although references like this are supported, in versions before 1.4.6 Entrance will hang if the bitmap is not found.

Comments are closed.