0

Matplotlib has some excellent styling options but is it possible to conditionally format the line colour in a line plot?

Specifically:

  • line solid black when below 0
  • line solid red when above 0

Please see the example below that I have photoshopped - the bar chart can be ignored...

Example output

Ewan
  • 14,592
  • 6
  • 48
  • 62

0 Answers0