I know the general usage of plotfile:
import matplotlib.pyplot as plt
plt.plotfile(csvfile,sometuple)
But this produces a line plot by default. I want a scatterplot. Is there some special argument that i need to pass to this method? I have already looked into the documentation and didnt find anything.
Scatter plots are used to observe relationship between variables and uses dots to represent the relationship between them. The scatter() method in the matplotlib library is used to draw a scatter plot.
show() . If you do not want to use inline plotting, just use %matplotlib instead of %matplotlib inline .
I don't see the advantages of plotfile, myself: as soon as you want to do anything interesting it's probably easier to work with the usual directives. But
matplotlib.pyplot.plotfile('dat.csv',(0,1),linestyle="",marker="o")
should replace the line by points.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With