Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

gltrace-rescale rescales trace. This updates the minimum and maximum limits of the the trace with values specified by the user.

Parameter Description
t Trace to be updated
vmin Lowest plotted value
vmax Highest plotted value

Example

Example 1: Rescales a trace.

(set! VAL_min 0)(set! VAL_max 10)
(set! val-trace (make-gltrace 101 30 GLTRACE_OVERWRITE VAL_min VAL_max VAL_min VAL_max))
(set! VAL_max 15)
(gltrace rescale val-trace VAL_min VAL_max)
...
(gltrace-update val-trace) ;; this must be called in the event loop
Clone this wiki locally