Matplotlib: plot or scatter without marker

there is a simple way to have scatter()

plots (or just plot

s) with data points shown by some marker and connected lines, but when markerfacecolor='none'

(or facecolor=none

) has a line not shown in the marker area.

eg:.

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

      

leads to the following figure.

enter image description here

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

+3


source to share





All Articles