| Skip to main content | https://matplotlib.org/plot_types/basic/scatter_plot.html#main-content |
|
| https://matplotlib.org/stable/ |
| Plot types | https://matplotlib.org/plot_types/index.html |
| User guide | https://matplotlib.org/users/index.html |
| Tutorials | https://matplotlib.org/tutorials/index.html |
| Examples | https://matplotlib.org/gallery/index.html |
| Reference | https://matplotlib.org/api/index.html |
| Contribute | https://matplotlib.org/devel/index.html |
| Releases | https://matplotlib.org/users/release_notes.html |
|
Gitter | https://gitter.im/matplotlib/matplotlib |
|
Discourse | https://discourse.matplotlib.org |
|
GitHub | https://github.com/matplotlib/matplotlib |
|
Twitter | https://twitter.com/matplotlib/ |
| Plot types | https://matplotlib.org/plot_types/index.html |
| User guide | https://matplotlib.org/users/index.html |
| Tutorials | https://matplotlib.org/tutorials/index.html |
| Examples | https://matplotlib.org/gallery/index.html |
| Reference | https://matplotlib.org/api/index.html |
| Contribute | https://matplotlib.org/devel/index.html |
| Releases | https://matplotlib.org/users/release_notes.html |
|
Gitter | https://gitter.im/matplotlib/matplotlib |
|
Discourse | https://discourse.matplotlib.org |
|
GitHub | https://github.com/matplotlib/matplotlib |
|
Twitter | https://twitter.com/matplotlib/ |
| Pairwise data | https://matplotlib.org/plot_types/basic/index.html |
| plot(x, y) | https://matplotlib.org/plot_types/basic/plot.html |
| scatter(x, y) | https://matplotlib.org/plot_types/basic/scatter_plot.html |
| bar(x, height) | https://matplotlib.org/plot_types/basic/bar.html |
| stem(x, y) | https://matplotlib.org/plot_types/basic/stem.html |
| fill_between(x, y1, y2) | https://matplotlib.org/plot_types/basic/fill_between.html |
| stackplot(x, y) | https://matplotlib.org/plot_types/basic/stackplot.html |
| stairs(values) | https://matplotlib.org/plot_types/basic/stairs.html |
| Statistical distributions | https://matplotlib.org/plot_types/stats/index.html |
| hist(x) | https://matplotlib.org/plot_types/stats/hist_plot.html |
| boxplot(X) | https://matplotlib.org/plot_types/stats/boxplot_plot.html |
| errorbar(x, y, yerr, xerr) | https://matplotlib.org/plot_types/stats/errorbar_plot.html |
| violinplot(D) | https://matplotlib.org/plot_types/stats/violin.html |
| eventplot(D) | https://matplotlib.org/plot_types/stats/eventplot.html |
| hist2d(x, y) | https://matplotlib.org/plot_types/stats/hist2d.html |
| hexbin(x, y, C) | https://matplotlib.org/plot_types/stats/hexbin.html |
| pie(x) | https://matplotlib.org/plot_types/stats/pie.html |
| ecdf(x) | https://matplotlib.org/plot_types/stats/ecdf.html |
| Gridded data | https://matplotlib.org/plot_types/arrays/index.html |
| imshow(Z) | https://matplotlib.org/plot_types/arrays/imshow.html |
| pcolormesh(X, Y, Z) | https://matplotlib.org/plot_types/arrays/pcolormesh.html |
| contour(X, Y, Z) | https://matplotlib.org/plot_types/arrays/contour.html |
| contourf(X, Y, Z) | https://matplotlib.org/plot_types/arrays/contourf.html |
| barbs(X, Y, U, V) | https://matplotlib.org/plot_types/arrays/barbs.html |
| quiver(X, Y, U, V) | https://matplotlib.org/plot_types/arrays/quiver.html |
| streamplot(X, Y, U, V) | https://matplotlib.org/plot_types/arrays/streamplot.html |
| Irregularly gridded data | https://matplotlib.org/plot_types/unstructured/index.html |
| tricontour(x, y, z) | https://matplotlib.org/plot_types/unstructured/tricontour.html |
| tricontourf(x, y, z) | https://matplotlib.org/plot_types/unstructured/tricontourf.html |
| tripcolor(x, y, z) | https://matplotlib.org/plot_types/unstructured/tripcolor.html |
| triplot(x, y) | https://matplotlib.org/plot_types/unstructured/triplot.html |
| 3D and volumetric data | https://matplotlib.org/plot_types/3D/index.html |
| bar3d(x, y, z, dx, dy, dz) | https://matplotlib.org/plot_types/3D/bar3d_simple.html |
| fill_between(x1, y1, z1, x2, y2, z2) | https://matplotlib.org/plot_types/3D/fill_between3d_simple.html |
| plot(xs, ys, zs) | https://matplotlib.org/plot_types/3D/plot3d_simple.html |
| quiver(X, Y, Z, U, V, W) | https://matplotlib.org/plot_types/3D/quiver3d_simple.html |
| scatter(xs, ys, zs) | https://matplotlib.org/plot_types/3D/scatter3d_simple.html |
| stem(x, y, z) | https://matplotlib.org/plot_types/3D/stem3d.html |
| plot_surface(X, Y, Z) | https://matplotlib.org/plot_types/3D/surface3d_simple.html |
| plot_trisurf(x, y, z) | https://matplotlib.org/plot_types/3D/trisurf3d_simple.html |
| voxels([x, y, z], filled) | https://matplotlib.org/plot_types/3D/voxels_simple.html |
| plot_wireframe(X, Y, Z) | https://matplotlib.org/plot_types/3D/wire3d_simple.html |
|
| https://matplotlib.org/index.html |
| Plot types | https://matplotlib.org/plot_types/index.html |
| Pairwise data | https://matplotlib.org/plot_types/basic/index.html |
| Go to the end | https://matplotlib.org/plot_types/basic/scatter_plot.html#sphx-glr-download-plot-types-basic-scatter-plot-py |
| # | https://matplotlib.org/plot_types/basic/scatter_plot.html#scatter-x-y |
| scatter | https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.scatter.html#matplotlib.axes.Axes.scatter |
| np.random.seed | https://numpy.org/doc/stable/reference/random/generated/numpy.random.seed.html#numpy.random.seed |
| x | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| np.random.normal | https://numpy.org/doc/stable/reference/random/generated/numpy.random.normal.html#numpy.random.normal |
| y | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| np.random.normal | https://numpy.org/doc/stable/reference/random/generated/numpy.random.normal.html#numpy.random.normal |
| x | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| sizes | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| np.random.uniform | https://numpy.org/doc/stable/reference/random/generated/numpy.random.uniform.html#numpy.random.uniform |
| x | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| colors | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| np.random.uniform | https://numpy.org/doc/stable/reference/random/generated/numpy.random.uniform.html#numpy.random.uniform |
| x | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| fig | https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure |
| ax | https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes |
| plt.subplots | https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots |
| ax.scatter | https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.scatter.html#matplotlib.axes.Axes.scatter |
| x | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| y | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| sizes | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| colors | https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray |
| ax.set | https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set.html#matplotlib.axes.Axes.set |
| np.arange | https://numpy.org/doc/stable/reference/generated/numpy.arange.html#numpy.arange |
| np.arange | https://numpy.org/doc/stable/reference/generated/numpy.arange.html#numpy.arange |
| plt.show | https://matplotlib.org/api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show |
| Download Jupyter notebook: scatter_plot.ipynb | https://matplotlib.org/_downloads/43385562b6168494e9464fd4ea79d5be/scatter_plot.ipynb |
| Download Python source code: scatter_plot.py | https://matplotlib.org/_downloads/f6c5e42b48428d3790657a757dda91a5/scatter_plot.py |
| Download zipped: scatter_plot.zip | https://matplotlib.org/_downloads/fa4d52647b36a4f0ad2cde0a62b9d949/scatter_plot.zip |
| Gallery generated by Sphinx-Gallery | https://sphinx-gallery.github.io |
| Sphinx | https://www.sphinx-doc.org/ |
| PyData Sphinx Theme | https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html |