<human>:  matplotlib Legend Markers Only Once
<bot>: Here is some code to make matplotlib plot legend put marker in legend only once

legend(numpoints=1)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.