python matplotlib 如何画点 而不要画点之间的连线?
plot(x,y,marker='*')
用marker参数来指定者用set_marker函数,参看matplotlib的帮助
>>>from matplotlib.lines import Line2D
>>> help(Line2D.set_marker)
def set_marker(self, marker):
"""
Set the line marker
========== ==========================
marker description
========== ==========================
'.' point
',' pixel
'o' circle
'v' triangle_down
'^' triangle_up
' '>' triangle_right
'1'