Skip to content

extra_graph_markers.gle


extra_graph_markers.gle

Additional graph markers for GLE.

This file contains user-contributed marker definitions that extend the

standard markers built into GLE.

Installation


Place this file in a directory searched by GLE, or provide the full path

in the include statement.

Usage


Include this file before creating graphs:

 include "extra_graph_markers.gle"

Once included, any marker defined in this file may be used anywhere a

normal graph marker is accepted.

Example:

 begin graph

     data "data.csv"

     d1 marker hexagon

 end graph

Defining New Markers


A custom graph marker consists of:

  1. An object that draws the marker shape.

  2. A marker callback subroutine with arguments:

      hsize  - marker size
    
      mdata  - marker data supplied by GLE
    
  3. A marker registration statement:

      define marker marker_name callback_sub
    

Example:

 begin object myShape width height

     ...

 end object



 sub myMarker hsize mdata

     draw myShape.cc hsize hsize

 end sub



 define marker mymarker myMarker

Marker Naming Guidelines


  • Use lowercase names.

  • Choose descriptive names.

  • Avoid names that conflict with built-in GLE markers.

  • Keep object and subroutine names unique.


sub hexagonMarkerSub hsize mdata
sub whexagonMarkerSub hsize mdata
sub fhexagonMarkerSub hsize mdata
sub octagonMarkerSub hsize mdata
sub woctagonMarkerSub hsize mdata
sub foctagonMarkerSub hsize mdata