[Python] ValueError: could not convert string to float: '−4.0'

Discussão em 'Python' iniciado por Stack, Julho 21, 2025.

  1. Stack

    Stack Membro Participativo

    Why is:

    print([float(a.get_text()) for a in cb.ax.xaxis.get_ticklabels()])


    giving me:

    ValueError: could not convert string to float: '−4.0'


    where cb is an instance of ColorBar

    Continue reading...

Compartilhe esta Página