On Fri, Jun 20, 2014 at 10:27 AM, Jamie Mitchell <
> That's great Jason thanks for the detailed response, I went with the
> easier option 1!
> I am also trying to put hatches on my histograms like so:
> When it comes to plt.show() I get the following error message:
> line 888, in hatch
> hatch_path = cls._hatch_dict.get((hatchpattern, density))
> TypeError: unhashable type: 'list'
> Do you have any idea why this is happening?
lists are mutable types, so they are not hashable (and therefore cannot be
used as dictionary keywords). You need an immutable type (which _is_
hashable) to act as a dictionary key. Like strings, tuples, and basic
number types (int, float, etc.).
The hatch should be a string (allowable symbols are given in the API
documentation). So try
plt.hist(dataset, bins, hatch='*')
Jason M. Swails