3D plotting with matplotlib

Issue #1122 new
Kei Yamamoto created an issue

Hi,

This is the first time for me to post an issue so please forgive me if the format is wrong. Also, I am not sure if the problem comes from FEniCS or matplotlib. Anyway, I am trying to plot 3D but gets the following error messages.

/Applications/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/common/plotting.py:279: MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4. Starting two minor releases later, gca() will take no keyword arguments. The gca() function should only be used to get the current axes, or if no axes exist, create new axes with default keyword arguments. To create a new axes with non-default arguments, use plt.axes() or plt.subplot().

ax = plt.gca(projection='3d')

/Applications/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/common/plotting.py:217: MatplotlibDeprecationWarning: 

The warn_deprecated function was deprecated in Matplotlib 3.4 and will be removed two minor releases later.

return ax.quiver(*args, length=length, **kwargs)

/Applications/anaconda3/envs/fenicsproject/lib/python3.8/site-packages/dolfin/common/plotting.py:217: MatplotlibDeprecationWarning: Since 3.4, passing LineCollection arguments other than the first, 'segments', as positional arguments is deprecated, and they will become keyword-only arguments two minor releases later.

return ax.quiver(*args, length=length, **kwargs)

The error message does not tell me what is the problem with my code but it is just pointing plotting.py.

Could anyone tell me what this error message means / how to possibly fix it ?

Best,

Comments (0)

  1. Log in to comment