Bug report
plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets()
plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets()
I've made a log-log hexbin plot and would like to access the points generated by hexbin so I can make a contour. I cannot access these points for two reasons:
-
The documentation is incorrect and states that PolyCollection.get_offset() should be called, but it is PolyCollection.get_offsets() (note plural). See 1st bullet point under returns here https://matplotlib.org/3.3.0/api/_as_gen/matplotlib.pyplot.hexbin.html
-
When I call get_offsets() if xscale='log' and yscale='log' are set, I only get array([[0., 0.]]) rather than the points.
Bug report
I've made a log-log hexbin plot and would like to access the points generated by
hexbinso I can make a contour. I cannot access these points for two reasons:The documentation is incorrect and states that
PolyCollection.get_offset()should be called, but it isPolyCollection.get_offsets()(note plural). See 1st bullet point underreturnshere https://matplotlib.org/3.3.0/api/_as_gen/matplotlib.pyplot.hexbin.htmlWhen I call
get_offsets()ifxscale='log'andyscale='log'are set, I only getarray([[0., 0.]])rather than the points.