1

I'm using matplotlib.pyplot to display several data on one plot.

What I want to achieve is similar to what's shown in the following figure:

Figure 1

Where I've used combinations of axvspans to generate the bands.

As you can see, the result is not very easily readable. One thing I would like to try is to use the same background color for the yellow and gray bands, but with different patterns, as in this figure (made with GIMP):

Figure 2

Where the white bands in the picture will have a similar pattern as the others but with, say, tilted orientation or inverted colors.

Is it possible to achieve that using Python?

Enzo
  • 338
  • 1
  • 2
  • 15
  • 2
    I will never again assume to know what some people will find more or less readable. – Paul Brodersen Nov 15 '18 at 11:21
  • @PaulBrodersen hahaha fair point. Indeed the second figure is way worse than the first one, but that's just due to my inability of using GIMP. I'd use better colors in my actual plot, I promise! – Enzo Nov 15 '18 at 11:23
  • 1
    On a more serious note, [this](https://stackoverflow.com/questions/14279344/how-can-i-add-textures-to-my-bars-and-wedges) might be a step in the right direction. – Paul Brodersen Nov 15 '18 at 11:26

0 Answers0