-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_dominanceTest.py
More file actions
22 lines (16 loc) · 1.14 KB
/
_dominanceTest.py
File metadata and controls
22 lines (16 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import matplotlib.pyplot as plt
import numpy as np
data = [[1.0, 0.0], [1.0, 0.0], [1.0, 0.01098901098901099], [0.966183574879227, 0.4175824175824176], [0.9033816425120773, 0.46153846153846156], [0.966183574879227, 0.5164835164835165], [0.927536231884058, 0.6153846153846154], [0.9468599033816425, 0.6153846153846154], [0.9371980676328503, 0.6923076923076923], [0.9082125603864735, 0.7582417582417582], [0.7391304347826086, 0.8131868131868132], [0.6473429951690821, 0.8791208791208791], [0.5942028985507246, 0.8901098901098901], [0.06280193236714976, 0.989010989010989], [0.05314009661835749, 0.989010989010989], [0.0, 1.0], [0.0, 1.0], [0.05314009661835749, 1.0], [0.0, 1.0]]
# Boolean values for color coding
boolean_values = [False, False, True, False, False, True, False, True, True, True, True, True,
True, True, False, False, False, True, False]
# Define colors based on boolean values
colors = ['blue' if value else 'red' for value in boolean_values]
x = [point[0] for point in data]
y = [point[1] for point in data]
plt.scatter(x, y, c=colors, alpha=0.5)
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Color Coded Plot')
plt.grid(True)
plt.show()