Underflow encountered in multiply while running streamplot()

Hello! I am trying to plot the streamlines around an airfoil using streamplot function as so plt.streamplot(XX, YY, Vx, Vy). However I am getting the error:

Traceback (most recent call last):
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\SP_Airfoil.py", line 359, in <module>
    plt.streamplot(XX, YY, Vx, Vy, linewidth=0.5, density=0.5, color='r', integration_direction='both')
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\matplotlib\pyplot.py", line 2953, in streamplot
    __ret = gca().streamplot(
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\matplotlib\__init__.py", line 1459, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\matplotlib\streamplot.py", line 147, in streamplot
    integrate = _get_integrator(u, v, dmap, minlength, maxlength,
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\matplotlib\streamplot.py", line 446, in _get_integrator
    u_ax = u / (dmap.grid.nx - 1)
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\numpy\ma\core.py", line 4254, in __truediv__
    return true_divide(self, other)
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\numpy\ma\core.py", line 1171, in __call__
    m |= domain(da, db)
  File "C:\Users\jad_h\PycharmProjects\JoshAirfoil\venv\lib\site-packages\numpy\ma\core.py", line 858, in __call__
    return umath.absolute(a) * self.tolerance >= umath.absolute(b)
FloatingPointError: underflow encountered in multiply

Process finished with exit code 1

XX, YY, Vx and Vy are all the same size and contain nor inf or NaN values. I also tried a quiver plot and it worked. What could be the issue with the streamplot function. Any help is appreciated. Thanks!

Hard to know without knowing what your data are. Are you sure XX and YY are correct?

Pretty sure yes. It’s just a meshgrid and it’s working fine with quiver plot. I could show the data but it’s 10000 values each.