Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

barplot hatch

import matplotlib.pyplot as plt

fig = plt.figure()

patterns = [ "/" , "" , "|" , "-" , "+" , "x", "o", "O", ".", "*" ]

ax1 = fig.add_subplot(111)
for i in range(len(patterns)):
    ax1.bar(i, 3, color='red', edgecolor='black', hatch=patterns[i])


plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #barplot #hatch
ADD COMMENT
Topic
Name
5+4 =