matplotlib-haskell icon indicating copy to clipboard operation
matplotlib-haskell copied to clipboard

Use of deprecated features breaks `contour`

Open FluxusMagna opened this issue 2 years ago • 0 comments

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'

FluxusMagna avatar Nov 19 '22 23:11 FluxusMagna