I am trying to vary opacity on each marker in a 3D scatter plot. I hit an issue with this where it was saying the color was not the correct length (even though it was). Moving to the simplest case it can be recreated with this.
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(subplot_kw={'projection': '3d'})
elements = 100
x = np.linspace(0, 10, elements)
ax.scatter(x, x, x, alpha=np.linspace(1, 0.5, elements), c=['b' for _ in range(elements)], label='label')
fig.legend()
plt.show()
If the label keyword argument is removed it works. If you do a 2D scatter plot it works regardless of the label. I am wondering if this is a bug but wanted to see if I was missing something first.
