Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Colored scatterplot

$
0
0
I have the following data:

X Y Z
1.19933759128 1.32660544917 1
1.56272090146 1.43261248809 5
0.73548763543 2.5888666696 4
1.02178276525 2.0445409215 5
1.09981521623 1.40485231582 3
0.26602687666 1.90265585197 5
1.24452568297 0.90203787319 2
1.12869438792 2.41689047719 3
1.95256307978 2.44185974889 2
0.69245669618 2.75208450838 5


I would like to create the scatterplot of the (x, y) points. However these points will be colored according to the Z value.
For example if z=1 the points will be blue
if z=2 the points will be green... etc...

I have no idea how to do this... would you help me? Thank you...

Viewing all articles
Browse latest Browse all 2485

Trending Articles