[Python] Python pandas bar plot with multiple alpha values

Discussão em 'Python' iniciado por Stack, Outubro 25, 2024.

  1. Stack

    Stack Membro Participativo

    Trying to create a bar plot with alpha transparency values for different time series.

    Would think the below would give me that, as I've seen elsewhere lists can be passed via the alpha kwarg but throws the error below. What am I missing?

    plt.figure()
    df.plot(kind="bar", alpha=[.5,1])


    ..

    TypeError: alpha must be numeric or None, not <class 'list'>

    Continue reading...

Compartilhe esta Página