Created
April 13, 2012 16:25
-
-
Save pmarshwx/2378109 to your computer and use it in GitHub Desktop.
Example showing hatching problem with matplotlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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