Skip to content

Instantly share code, notes, and snippets.

@lightscalar
Created June 5, 2014 13:51
Show Gist options
  • Select an option

  • Save lightscalar/21dcde8e08b2b25cc9a8 to your computer and use it in GitHub Desktop.

Select an option

Save lightscalar/21dcde8e08b2b25cc9a8 to your computer and use it in GitHub Desktop.
Fill between two curves in matplotlib

Given data x, upper, and lower, you can plot the area between the two curves lower & upper using this code:

fill_between(x, upper, lower, facecolor='#ffcc33', alpha=0.4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment