<bound method PolyCollection.get_paths of <matplotlib.collections.PolyCollection object -
is there way @ paths matplotlib1.3.0?
i using hexbin , create following output: "hex31mm", a:
in [42]: type(hex31mm) out[42]: matplotlib.collections.polycollection
my aim use method "get_paths" in "matplotlib 1.1.0" function linked below newer version of "matplotlib 3.0.1" interestingly: "get_paths" under matplotlib 3.0.1, yields "802" distinct paths below:
in [41]: len(hex31mm.get_paths()) out[41]: 802
yet "get_paths" under matplotlib 1.3.0, same object "hex31mm" yields 1 path below:
in[1] len(hex31mm.get_paths()) out[1]: 1
please check link below more details, appreciated!
note:
i sure information paths part of object in both cases because hexbin figure plots onto screen same under both matplotlib versions, require hexbin centres, hence insistance of use on "get_path" method linked function.
sorry sound repetitive function works fine in matplotlib1.1.0 not under matplotlib1.3.0 , supposed return array (n,2), , each element of array centre (x,y) of n hexbins:
any hints, appreciated...
i think in newer versions of matplotlib method: "get_offsets()" trick: "hex31mm.get_offsets()" returns centres output of function ...
Comments
Post a Comment