Alex G. Doll

Menu Home Resume Travel Pages Education Links

Alex G. Doll
P. Eng, Metallurgical Process Engineer,
I.T. Consulting Specialist

#1400 - 355 Burrard St, Vancouver, V6C2G8, Canada
Phone: +1-778-388-2444
Homepage: http://www.agdconsulting.ca
email: alex.doll@agdconsulting.ca

 

PHPlot hacking

Alex's modified version of the PHPlot graphic library

What's changed?

  1. X and Y axes auto numbering starts at a more rounded number.
  2. Intervals will be multiples of 10^n, 2*10^n or 5*10^n where 'n' depending on the magnitude of the data you are graphing.
  3. changed the initialization to populate
    var $point_shapes =array('diamond','dot','cross','rect','triangle');
  4. Added new options to
    function SetXDataLabelPos($which_xdlp)
    to allow labels to appear on or around the data point rather than just the axes.
    • point Plots label at the location of the data point
    • point-above Plots label immediately above the data point
    • point-left Plots label immediately to the left of the data point
    • point-right Plots label immediately to the right of the data point
    • point-below Plots label immediately below the data point
  5. Removed the restriction that only
    $this->x_tick_label_pos
    or
    $this->x_data_label_pos
    could be instantiated. Both may be used simultaneously.
  6. Added new function
    function SetLabelAngle($which_xla)
    which uses the same parameters as
    function SetXLabelAngle($which_xla)

Code download here: phplot.tar.bz2

Gallery of plots created with this new code: