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

update: added map.points function #14

Merged
merged 1 commit into from
Jan 9, 2023
Merged

Conversation

ayushanand18
Copy link
Member

Overview

This PR aims to implement a maps.points() function to plot world maps with DwC data easily.

Addresses #12

Changes Introduced

  • A pydwcviz.map module containing different types of maps
    • maps.points() function to generate point map from a dataframe containing occurrence records with at least decimalLongitude and decimalLatitude columns, using geopandas.

Usage

from pydwcviz import map
from pyobis import occurrences
import matplotlib.pyplot as plt

ax = map.points(occurrences.search(scientificname="Mola mola", size=100).execute())
plt.show() # required only in a non-Jupyter interface

Thanks!

@ayushanand18 ayushanand18 requested a review from 7yl4r January 9, 2023 06:29
@7yl4r 7yl4r merged commit 695f793 into marinebon:main Jan 9, 2023
@ayushanand18 ayushanand18 deleted the maps branch January 9, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants