Track color depending on height or speed

ekalaitz's picture

Is it possible to draw a track of variable color ? I want the color of the track to be an indication of the altitude or speed at different points thus green color for up to 10 meters altitude, yellow for up to 100 meters altitude and red above 1000 meters etc. Or Green color for a speed up to 50 Km/Hour, yellow for up to 90 Km/hour and red color for speeds that exceed 90 Km/hour.