The following plot styles allow arrows or lines to be drawn on graphs with positions dictated by a series of datapoints:
The plot style of arrows is an alias for arrows_head. Each of these plot styles take four columns of data on two-dimensional plots – ,
,
and
– or six columns of data on three-dimensional plots with additional
-coordinates. Each datapoint results in an arrow being drawn from the point
to the point
. The three plot styles differ in the kinds of arrows that they draw: arrows_head draws an arrow head on each arrow at the point
; arrows_nohead draws simple lines without arrow heads on either end; arrows_twohead draws arrow heads on both ends of each arrow.
A diagram of fluid flow around a vortex.
In this example we produce a velocity map of fluid circulating in a vortex. For simplicity, we assume that the fluid in the core of the vortex, at radii |
from math import * |
This data can then be plotted using the following PyXPlot script: |
set size square |
![]() |