MorvanZhou / tutorials

机器学习相关教程
https://morvanzhou.github.io/tutorials
MIT License
11.85k stars 5.71k forks source link

How to use a continuous color as the color of a line? #49

Closed EmbraceLife closed 7 years ago

EmbraceLife commented 7 years ago

Hi Morvan, Thanks for continuing making great lessons!

I have a question about using matplotlib to create a line with a continuous color, the continuous color should be based on an array.

The original dataset and question is here

Could you teach me how to do it? Thanks

MorvanZhou commented 7 years ago

Hi, this is not an issue in the tutorial code. But if you like, you can divide line segment and color them in different colors.