0

Is there a function in Matplotlib to display black rectangles on a graphic ?, like this :

enter image description here

Lter
  • 43
  • 11

1 Answers1

1

You might want to look into Matplotlib's Patches and subsequent Rectangle modulus. Here's an example showcasing box creations with some error bars.

Alex Douglas
  • 191
  • 7
  • interesting, I just tested, it should do the trick! In the meantime, I found another simpler [code](https://stackoverflow.com/a/37852631/13517638) than that of the Matplotlib documentation for drawing error boxes. I think I should get something done with both. thanks – Lter Jul 01 '20 at 19:09