Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save hexbin binned data in a text file. #14811

Closed
masabhathini opened this issue Jul 17, 2019 · 2 comments
Closed

How to save hexbin binned data in a text file. #14811

masabhathini opened this issue Jul 17, 2019 · 2 comments
Labels
Community support Users in need of help.
Milestone

Comments

@masabhathini
Copy link

General Query

summary

Hi,

How can I save the hexbin data in a ascii format ?
#13985
I want to find the difference between previous hour - current hour lightning over a each hexbin.
i.e., I want to plot the change in previous hour and current hour.

regards,
M. Sateesh

@timhoffm
Copy link
Member

The data is contained in the returned PolyCollection.

  • Use pc.get_offsets() to obtain a Nx2 array of the hexagon centers.
  • Use pc.get_array() to obtain a length-N array of the values associated with the hexagons.

@timhoffm timhoffm added the Community support Users in need of help. label Jul 17, 2019
@timhoffm
Copy link
Member

Docs on this have been improved in #14839.

@QuLogic QuLogic added this to the v3.1.2 milestone Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community support Users in need of help.
Projects
None yet
Development

No branches or pull requests

3 participants