Scatter Plot Python Matplotlib
Scatter plots are used to plot data points on horizontal and vertical axis in the attempt to show how much one variable is affected by another.
Scatter plot python matplotlib. Matplotlib pyplot scatter matplotlib pyplot scatter x y s none c none marker none cmap none norm none vmin none vmax none alpha none linewidths none verts none edgecolors none plotnonfinite false data none kwargs source a scatter plot of y vs x with varying marker size and or color. Each row in the data table is represented by a marker the position depends on its values in the columns set on the x and y axes. A third variable can be set to correspond to the color or size of the markers thus adding yet another dimension to the plot. The position of a point depends on its two dimensional value where each value is a position on either the horizontal or vertical dimension.
In this tutorial we ll take a look at how to plot a scatter plot in matplotlib. Matplotlib is one of the most widely used data visualization libraries in python. A scatter plot is a type of plot that shows the data as a collection of points.