Scatter patterns instead of line strings when using the plotfile matplotlib function

I know the general use of the plotfile:

import matplotlib.pyplot as plt

plt.plotfile(csvfile,sometuple)

But this creates a default line graph. I want a scatter chart. Is there any special argument I need to pass to this method? I already looked through the documentation and found nothing.

+3
source share
2 answers

I don’t see the advantages of the plot file myself: as soon as you want to do something interesting, it may be easier to work with regular directives. But

matplotlib.pyplot.plotfile('dat.csv',(0,1),linestyle="",marker="o")

replace the line with dots.

+6
source

I don’t know how to use the plotfile command, but in a “fair” plot I used markers like

matplotlib.pyplot.plot(X1, Y1, 'go', X2, Y2, 'b-') 

"go" , "b-" , "r--" .....

matplotlib.pyplot.plot.

+1

All Articles