orbingol / NURBS-Python

Object-oriented pure Python B-Spline and NURBS library
https://onurraufbingol.com/NURBS-Python/
MIT License
603 stars 153 forks source link

Remove a MatplotlibDeprecationWarning #129

Open sphh opened 3 years ago

sphh commented 3 years ago

Remove this warning:

…/geomdl/visualization/VisMPL.py:431: MatplotlibDeprecationWarning: Axes3D(fig) adding itself to the figure is deprecated since 3.4. Pass the keyword argument auto_add_to_figure=False and use fig.add_axes(ax) to suppress this warning. The default value of auto_add_to_figure will change to False in mpl3.5 and True values will no longer work in 3.6. This is consistent with other Axes classes. ax = Axes3D(fig)

orbingol commented 3 years ago

geomdl 5.x still supports python 2.7.x (I know it is EOL but academic apps usually require compatibility with EOL software). I don't think MPL 3.4 supports py2.7. For now, please use a MPL version < 3.4

I will be deprecating 2.7.x support in geomdl 6.x along with several other major changes.

sphh commented 3 years ago

Ok, I can see your point. But I am already at MPL 3.4.2 and do not want / cannot downgrade. Oh, I guess, I have to live with that warning then (or apply these changes to my local copy :-o )