Skip to content

Instantly share code, notes, and snippets.

@pmarshwx
Created April 13, 2012 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmarshwx/2378109 to your computer and use it in GitHub Desktop.
Save pmarshwx/2378109 to your computer and use it in GitHub Desktop.
Example showing hatching problem with matplotlib
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
x = np.random.rand(10) * 10
y = np.random.rand(10) * 10
plt.fill(x, y, fill=False, hatch='/', linestyle='dashed')
plt.savefig('incorrect_example.png')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment