Matplotlib - dots won't show up, but lines will

2.2k views Asked by At

I have run into a bizarre issue with Matplotlib.

If I run the following commands, no points are plotted:

import matplotlib.pyplot as plt
plt.plot(range(10), 'r.')
plt.show()

However, if I instead change the marker style to line as follows, then it works just fine:

import matplotlib.pyplot as plt
plt.plot(range(10), 'r-')
plt.show()

I'm working on a Macbook, but I'm connecting to my Ubuntu Server VM via ssh -X when running this code. I've never had this issue before with other VMs. Any ideas?

1

There are 1 answers

0
Quentin On

This could be related to https://github.com/matplotlib/matplotlib/issues/3711 . Try passing a markeredgecolor argument to see if that helps ?