matplotlib: plot or scatter without line through marker

3.5k views Asked by At

is there a simple way to have scatter() plots (or just plots) with data points shown by some marker and connected by lines, but, when markerfacecolor='none' (or facecolor=none) have the line not shown within the area of the marker.

E.g.:

xx = arange(0.0,10.0,0.5)
yy = sin(xx)
plt.plot(xx,yy,'k-',marker='o',markerfacecolor='none')

results in the following figure.

enter image description here

But I would like the lines connecting data points to start not from the center of each marker but from its borders.

0

There are 0 answers