Here's part of the plot I'm working on: (using Python)
It consists of a histogram and a function. Here's the code for plotting the two items:
expc = plt.plot(x,Yt,color = 'darkorange')
hist = plt.bar(spec.keys(), spec.values(), width=np.abs((rang2-rang1)/L), color='darkviolet',alpha = 0.7)
plt.legend([expc, hist],['Expected','Histogram from qasm'])
I want to simultaneously label them, but it only shows one of the legends. I also got an error message:
UserWarning: Legend does not support xxx instances. A proxy artist may be used instead.
What should I do to label both items? Thanks a lot:)

