pandas legend only shows one group when color changed code example Example: python no label in legend matplot ax.plot(randn(1000).cumsum(), 'k.', label='_nolegend_')