-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
MWE:
import matplotlib
from matplotlib import pyplot as plt
import numpy as np
fig = plt.figure()
N = 20
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = np.pi * (15 * np.random.rand(N))**2
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
children = fig.get_children()
for child in children:
if isinstance(child, matplotlib.axes.Subplot):
cc = child.get_children()
print(cc[0].get_facecolors())
plt.show()Output:
[[ 0. 0. 1. 0.5]]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels