1

Both plt.scatter and plt.plot can draw dots

this code draws a dot without filling it

plt.scatter(1, 1, s=80, facecolors='none', edgecolors='r')

enter image description here

while plt.plot doesn't seem to support facecolors property

plt.plot(1,1,'ro')

enter image description here

how do I draw a dot without filling it with plt.plot?

1 Answer 1

2

For regular plots, you can use markerfacecolor:

plt.plot(1, 1, 'ro', markerfacecolor='none')

plt.plot with markerfacecolor='none'

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.