Re: [matplotlib-devel] hashing of FontProperties

2009-03-02 Thread Michael Droettboom
Jae-Joon Lee wrote: > The following code show how the FontProperties is currently hashed. > > def __hash__(self): > l = self.__dict__.items() > l.sort() > return hash(repr(l)) > > > The hash does not account user's rcParams setting. And due to the font > caching, findfo

[matplotlib-devel] hashing of FontProperties

2009-02-28 Thread Jae-Joon Lee
The following code show how the FontProperties is currently hashed. def __hash__(self): l = self.__dict__.items() l.sort() return hash(repr(l)) The hash does not account user's rcParams setting. And due to the font caching, findfont(FontProperties()) returns the same