[Python] ax.scatter(x, y, z, s=None) rises error in projection='3d' mode

Discussão em 'Python' iniciado por Stack, Março 18, 2025.

  1. Stack

    Stack Membro Participativo

    Strange behavior of ax.scatter() in projection='3d' mode.

    This code

    import matplotlib.pyplot as plt

    fig = plt.figure()
    ax = plt.axes(projection='3d')
    ax.scatter(0,0,0, s=None)
    plt.show()


    Rises an error: ValueError: s must be a scalar, or float array-like with the same size as x and y.

    Although, without parameter s or with s equals to some specific value everything works fine.

    Any ideas?

    Continue reading...

Compartilhe esta Página