Plotting line with different colors: cannot be done ?

Mark, Petr,

    I would like to plot the line which interconnects the GPS track points
    (latitude and longitude coordinates) recorded by GPS receiver. It is
    not so difficult. What I am not able to do is to change the color of
    the line according to the speed reached on the way from point to
    point. I would like to use the color of the line to differentiate the
    speed as following:

    speed <=50km/h
    speed >50 and <=90km/h
    speed >90 and <=130km/h
    speed >130km/h

It can be done, but not with a simple plot command. See the attached demo; I think it is similar to what you want to do.

Eric

colored_line.py (990 Bytes)