def METHOD_NAME(wind_x, wind_y, x_range, y_range, x_coords, y_coords,
                   z_coords):
    """Generate a 2D vector plot of the wind data if matplotlib is installed"""
    try:
        import matplotlib
        matplotlib.use('Agg')
        import matplotlib.pyplot as plt
    except ModuleNotFoundError:
        print('matplotlib not installed: plotting disabled.', file=sys.stderr)
        return
    plt.figure()
    x_points = [point[0] for point in util.permutations(x_range, y_range)]
    y_points = [point[1] for point in util.permutations(x_range, y_range)]
    plt.quiver(x_points,
               y_points,
               [wind_x(x, y) for x, y in zip(x_points, y_points)],
               [wind_y(x, y) for x, y in zip(x_points, y_points)])
    plt.quiver(x_coords,
               y_coords,
               [x[0] for x in z_coords],
               [y[1] for y in z_coords],
               color='red')
    plt.savefig('wind.png')