Skip to content

change of gca() in matplotlib 3.4 #532

Closed
@PaulSoderlind

Description

@PaulSoderlind
x = -10:10
y = -11:11
z = x.^2 .+ y'.^2
surf(x, y, z')

gives the following warning message with PyPlot/matplotlib 3.4.2:

sys:1: 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().

The following is a MWE:

figure()
ax = gca(projection="3d")

and things like that show up on eg. line 61 of plot3d.jl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions