gbif / pygbif

GBIF Python client
https://pygbif.readthedocs.io/en/latest/
MIT License
110 stars 29 forks source link

Center map #61

Closed diallobakary4 closed 4 years ago

diallobakary4 commented 4 years ago

Hello How can center this map on the country ZA (South Africa). This should be quite trivial but I have been unsuccessfully playing with the coordinates (see bellow). Or should simply resize the generated figure?

map_resize

Thanks

sckott commented 4 years ago

thanks for your question @diallobakary4 - i'll have a look and get back to you soon

sckott commented 4 years ago

sorry, I tried but can't figure out how to center. there is an extent parameter on matplotlib.pyplot.imshow (which we use internally), which seems promising, but I don't know how to use it exactly

diallobakary4 commented 4 years ago

OK thank you. Will look into that.

On Fri, 8 May 2020, 21:08 Scott Chamberlain, notifications@github.com wrote:

sorry, I tried but can't figure out how to center. there is an extent parameter on matplotlib.pyplot.imshow (which we use internally), which seems promising, but I don't know how to use it exactly

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sckott/pygbif/issues/61#issuecomment-625970896, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHIEFN6NZKHLMQQSKIZYHTRQRKCLANCNFSM4L2EVLMQ .