Skip to main content
`Ctrl`+`K`

# vispy.visuals.windbarb module

Windbarb Visual and shader definitions.

class vispy.visuals.windbarb.WindbarbVisual(**kwargs)

  Bases: `Visual`

  Visual displaying windbarbs.

  set_data(pos=None, wind=None, trig=True, size=50.0, antialias=1.0, edge_width=1.0, edge_color='black', face_color='white')

    Set the data used to display this visual.

    Parameters:
      pos array

        The array of locations to display each windbarb.

      wind array

        The array of wind vector components to display each windbarb. in m/s. For knots divide by two.

      trig bool

        True - wind contains (mag, ang) False - wind contains (u, v) defaults to True

      size float or array

        The windbarb size in px.

      antialias float

        The antialiased area (in pixels).

      edge_width float | None

        The width of the windbarb outline in pixels.

      edge_color Color | ColorArray

        The color used to draw each symbol outline.

      face_color Color | ColorArray

        The color used to draw each symbol interior.