0
        plt.plot(red, redforcemean, label='all')
        line, = plt.plot(red, redforcemean, label='11')

I have never seen syntax with comma after the word "line," what does this kind of assignment mean?

  • can you write full code ? – Viettel Solutions Dec 31 '21 at 03:56
  • 1
    read [this](https://stackoverflow.com/questions/10422504/line-plotx-sinx-what-does-comma-stand-for) it answers your question. essential, plt.ploy returns a tuple with only one entry, which gets unpacked into your var. – Anu Dec 31 '21 at 03:58
  • Have you ever seen an expression like `var1, var2 = something`? It's the same, except with just one variable. – Barmar Dec 31 '21 at 03:58

0 Answers0