title: Color line in graph PyQT5
body: <p>I am drawing two graphs in one window. How to make graph lines separate colors? My code:</p>
  <pre><code>def onRead():
  rx = serial.readLine()
  rxs = str(rx).strip()
  data = rxs.split(': ')
  
  if data[0] == &quot;b'U1&quot;:
      global listY, listX, listY1
      listY = listY[1:]
      data[1] = data[1].replace(&quot;\\r\\n&quot;, '')
      data[1] = data[1].replace(&quot;'&quot;, '')
      listY.append(float(data[1]))
  if data[0] == &quot;b'U2&quot;:
      listY1 = listY1[1:]
      data[1] = data[1].replace(&quot;\\r\\n&quot;, '')
      data[1] = data[1].replace(&quot;'&quot;, '')
      listY1.append(float(data[1]))
  
      ui.graph.clear()
      ui.graph.plot(listX, listY)
  
      ui.graph.plot(listX, listY1)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/TEVUI.png" rel="nofollow noreferrer">enter image description here</a></p>