| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.streamplot.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.pyplotDraw streamlines of a vector flow.
Evenly spaced strictly increasing arrays to make a grid. If 2D, all
rows of x must be equal and all columns of y must be equal; i.e.,
they must be as if generated by np.meshgrid(x_1d, y_1d).
x and y-velocities. The number of rows and columns must match the length of y and x, respectively.
Controls the closeness of streamlines. When density = 1, the domain
is divided into a 30x30 grid. density linearly scales this grid.
Each cell in the grid can have, at most, one traversing streamline.
For different densities in each direction, use a tuple
(density_x, density_y).
The width of the streamlines. With a 2D array the line width can be varied across the grid. The array must have the same shape as u and v.
The streamline color. If given an array, its values are converted to colors using cmap and norm. The array must have the same shape as u and v.
Data normalization and colormapping parameters for color; only used
if color is an array of floats. See imshow for a detailed
description.
Scaling factor for the arrow size.
Arrow style specification.
See FancyArrowPatch.
Minimum length of streamline in axes coordinates.
Coordinates of starting points for the streamlines in data coordinates (the same coordinates as the x and y arrays).
The zorder of the streamlines and arrows. Artists with lower zorder values are drawn first.
Maximum length of streamline in axes coordinates.
Integrate the streamline in forward, backward or both directions.
If given, the following parameters also accept a string s, which is
interpreted as data[s] if s is a key in data:
x, y, u, v, start_points
If False, forces streamlines to continue until they leave the plot domain. If True, they may be terminated if they come too close to another streamline.
Multiplier on the maximum allowable step in the streamline integration routine. A value between zero and one results in a max integration step smaller than the default max step, resulting in more accurate streamlines at the cost of greater computation time; a value greater than one does the converse. Must be greater than zero.
Added in version 3.11.
Multiplier on the maximum allowable error in the streamline integration routine. A value between zero and one results in a tighter max integration error than the default max error, resulting in more accurate streamlines at the cost of greater computation time; a value greater than one does the converse. Must be greater than zero.
Added in version 3.11.
Number of arrows per streamline. The arrows are spaced equally along the steps each streamline takes. Note that this can be different to being spaced equally along the distance of the streamline.
Container object with attributes
lines: LineCollection of streamlines
arrows: PatchCollection containing FancyArrowPatch
objects representing the arrows half-way along streamlines.
This container will probably change in the future to allow changes to the colormap, alpha, etc. for both lines and arrows, but these changes should be backward compatible.
Notes
Note
This is the pyplot wrapper for axes.Axes.streamplot.
matplotlib.pyplot.streamplot#
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |