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
matplotlib plot scatter-plot linestyle


source to share


No one has answered this question yet

Check out similar questions:

1015
Save the image to an image file instead of displaying it with Matplotlib
752
How to make matplotlib notebook IP address
303
When to use cla (), clf () or close () to clear a plot in matplotlib?
64
generating matplotlib markup plots from dataframes in Python pandas
63
Typing text in the upper left corner of a matplotlib plot
48
Matplotlib
31
Python scatters the plot. Marker size and style
five
Semi-transparent markers on a logarithmic chart
3
Scatter plot with multiple markers
0
Setting markers on a scatter plot



All Articles
Loading...
X
Show
Funny
Dev
Pics