Class constructor
void
PolarThumbGraph
()
Generate image thumbnail file to show cadence and stride distribution (gauss-like) for one or more exercise(s) (gif format)
string
gen_cadence_stride_gauss
(array $cadences, array $strides)
-
array
$cadences: Cadence distribution (array of value => number of occurences)
-
array
$strides: Stride length distribution (array of value => number of occurences)
Generate image thumbnail file to show heart rate and speed distribution (gauss-like) for one or more exercise(s) (gif format)
string
gen_hr_speed_gauss
(array $hrs, integer $rest_hr, integer $max_hr, array $speeds)
-
array
$hrs: Heart rate distribution (array of value => number of occurences)
-
integer
$rest_hr: User rest heart rate in BPM
-
integer
$max_hr: User maximum heart rate in BPM
-
array
$speeds: Speed distribution (array of value => number of occurences)
Generate image thumbnail file to show average speed, heart rate, and optionally altitude for a exercise (gif format)
If no speed information, fill all as if maximum speed
string
gen_lap_speed_hr
(array $laps, integer $elapsed, integer $rest_hr, integer $max_hr, [boolean $draw_verticals = false], [boolean $draw_lapnum = false], [boolean $draw_altitude = false], [boolean $draw_speed = true])
-
array
$laps: Exercise laps
-
integer
$elapsed: Exercise duration in seconds * 10
-
integer
$rest_hr: User rest heart rate in BPM
-
integer
$max_hr: User maximum heart rate in BPM
-
boolean
$draw_verticals: True to draw vertical lines, else false
-
boolean
$draw_lapnum: True to draw lap numbers, else false
-
boolean
$draw_altitude: True for altitude curve (ini / end points), else false
-
boolean
$draw_speed: True if speed data, else false
Draw graph title and all axis
void
_draw_axis
(resource $img, integer $color, string $title, integer $x_color, string $x_title, string $y_title, [integer $x_color_2 = null], [string $x_title_2 = null], [integer $top_margin_2 = 0])
-
resource
$img: GD image resource, as returned by _open()
-
integer
$color: GD color for title and axis, as returned by imagecolorallocate()
-
string
$title: Graph title
-
integer
$x_color: GD color for 1st X axis label, as returned by imagecolorallocate()
-
string
$x_title: Label for 1st X axis
-
string
$y_title: Label for Y axis
-
integer
$x_color_2: GD color for 2nd X axis label, as returned by imagecolorallocate()
-
string
$x_title_2: Label for 2nd X axis
-
integer
$top_margin_2: Number of pixels to draw x_title_2 label top of 2nd X axis
Redefinition of:
- PolarGraph::_draw_axis()
- Draw graph title and X axis
Inherited Methods
Inherited From PolarGraph
PolarGraph::PolarGraph()
PolarGraph::_close()
PolarGraph::_draw_altitude_lines()
PolarGraph::_draw_axis()
PolarGraph::_draw_cadence_lines()
PolarGraph::_draw_distance_labels()
PolarGraph::_draw_hr_lines()
PolarGraph::_draw_speed_lines()
PolarGraph::_draw_time_labels()
PolarGraph::_draw_x_axis()
PolarGraph::_open()