abarbu / matplotlib-haskell

Haskell bindings for Python's Matplotlib
Other
85 stars 12 forks source link

Use of deprecated features breaks `contour` #17

Open FluxusMagna opened 1 year ago

FluxusMagna commented 1 year ago

Probably breaks other things too, but this is where I noticed it.

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 = plot.gca(projection='3d')
Traceback (most recent call last):
  File "/tmp/code1875079-1.py", line 24, in <module>
    ax.plot_surface(np.array(data[0]), np.array(data[1]), np.array(data[2]), rstride=1, cstride=1, cmap=cm.Blues, alpha=0.3)
AttributeError: 'AxesSubplot' object has no attribute 'plot_surface'