I want to create a 3D scatterplot with different datasets in the same plot and a legend with their labels. The problem I am facing is that I cannot properly add the legend and I get a plot with an empty label as the figure in:
More specifically, I get the error:
/usr/lib/pymodules/python2.7/matplotlib/legend.py:610: UserWarning: Legend does not support
Use proxy artist instead."
Please find below an example demo of what I have tried so far:
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import random
import csv
from os import listdir
from os.path import isfile, join
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
handles = []
colors = ['blue', 'red']
X1 = range(0,10)
Y1 =