how to make hollow square marks with matplotlib in python

matplotlib, python

Solution

Try adding `markerfacecolor` like so:

pylab.semilogy(xaxis, pq_averages, 'ks-', markerfacecolor='none', label='DCTCP-PQ47.5')

Problem

Black line in the following graph is plotting using the below command for matplotlib python ``` pylab.semilogy(xaxis, pq_averages, 'ks-',color='black', label='DCTCP-PQ47.5') ``` So 'ks-' part indicates solid line with square black marks. So it had solid squares for the plotted points. Can these squares be made hollow instead?

Original source

Related problems