matplotlib get_legend_handles_labels always return empty
When you adding curves, bar to your chart specify label, like:

ax.plot(x, y, linewidth=1.75, color='#00ff00', label='curve1')


After that everything works like a charm.