Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Created July 7, 2020 17:33
Show Gist options
  • Save blaylockbk/a994bd63e2cd66ac5ddc6de57db11a5c to your computer and use it in GitHub Desktop.
Save blaylockbk/a994bd63e2cd66ac5ddc6de57db11a5c to your computer and use it in GitHub Desktop.
# For overlaying two colorbars on the same figure
plt.rcParams['hatch.color'] = (1, 1, 1, .33)
plt.rcParams['hatch.linewidth'] = 8
plt.bar([1,2], [2,5], color='.1', label='first')
plt.bar([1,2], [3,4], hatch='/', alpha=.33, color='g', label='second')
plt.legend()
@blaylockbk
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment