feather

feather(cmd0::String="", arg1=nothing; kwargs...)

Plot arrows originating from the x-axis. Specify the direction of arrows using the Cartesian components U and V or polar theta,r. The input can either be a file name of a file with at least two columns (u,v), but preferably three, a GMTdatset object with also two or more columns, or direct u,v inputs. In case data has only two columns the arrows are plotted in fuction of the number of points. If xx axis is time, provide the data as time u v or time theta r.

feather(u,v, …) plots the arrows in function of number of data points.
feather(x,u,v, …) plots the arrows at the x coordinates. x may be a time column.

feather(D::GMTdatset, yvar, …) plots the specified variables from the GMTdatset against the row indices of the table. To select the two columns that make up the arrows, specify them via the variable yvar. This can take the form of column names or column numbers. Example yvar=[:Y1, :Y2] or yvar=(2,3).

feather(D::GMTdatset,xvar,yvar) plots the variables xvar and yvar from the table D. You can specify one or multiple variables for yvar and one only for xvar.
This module is a subset of plot to make it simpler to draw stair plots. So not all (fine) controlling parameters are not listed here. For the finest control, user should consult the plot module.
Parameters

Examples

Create a feather plot by specifying the components of each arrow as Cartesian values..

using GMT
uv= [0.0 0 2.0; 0.0 30 2; 0.0 60 2; 0.0 90 2; 0.0 120 2; 0.0 150 2; 0.0 180 2; 0.0 210 2; 0.0 240 2; 0.0 270 2; 0.0 300 2; 0.0 330 2; 0.0 360 2];
feather(uv, rtheta=true, aspect="1:1", arrow=(len=0.5, shape=0.5,), lw=0.5, fill=:green, show=true)
Precompiling packages...

  70970.7 msGMT

  1 dependency successfully precompiled in 72 seconds. 80 already precompiled.

With simple arrows and in function of number of arrows.

using GMT
t = -pi/2:pi/8:pi/2; u = 10*sin.(t); v = 10*cos.(t);
feather(u,v, show=true)

Show the data used in this example.

gmtread(tests("wind_faro_s.dat"))
Comment:    ["Time, azimuth, vmean, vmax"]
BoundingBox: [1.4935968e9, 1.4936184e9, 26.0, 350.0, 1.3, 2.8, 3.5, 6.6]
7×4 GMTdataset{Float64, 2}
 Row │                Time  azimuth  vmean  vmax
─────┼───────────────────────────────────────────
   1 │ 2017-05-01T00:00:00    310.0    2.4   3.6
   2 │ 2017-05-01T01:00:00    328.0    2.5   4.3
   3 │ 2017-05-01T02:00:00    340.0    2.0   4.2
   4 │ 2017-05-01T03:00:00     26.0    1.3   3.5
   5 │ 2017-05-01T04:00:00    350.0    2.8   5.7
   6 │ 2017-05-01T05:00:00    349.0    2.7   6.6
   7 │ 2017-05-01T06:00:00    337.0    1.9   3.9

Source Code

This function has multiple methods: